-
Notifications
You must be signed in to change notification settings - Fork 5
77 lines (66 loc) · 2.2 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: "Continuous Integration"
on:
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
style-check:
name: Style check
runs-on: ubuntu-22.04
strategy:
fail-fast: true
steps:
- name: Checkout MMTk Ruby binding
uses: actions/checkout@v4
with:
path: ./git/mmtk-ruby
- name: Setup environment
run: ./.github/scripts/ci-setup.sh
working-directory: ./git/mmtk-ruby
- name: Style checks
run: ./.github/scripts/ci-style.sh
working-directory: ./git/mmtk-ruby
build-and-test:
name: Build and test
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
debug-level: ["debug", "release"]
plan: ["MarkSweep", "Immix", "StickyImmix"]
env:
DEBUG_LEVEL: ${{ matrix.debug-level }}
CHOSEN_PLAN: ${{ matrix.plan }}
steps:
- name: Checkout MMTk Ruby binding
uses: actions/checkout@v4
with:
path: ./git/mmtk-ruby
- name: Setup script dependencies
run: ./.github/scripts/ci-setup-script-deps.sh
working-directory: ./git/mmtk-ruby
- name: Determine Ruby repository and revision
id: extract-ruby-revision
run: python ./.github/scripts/extract-ruby-revision.py ./mmtk/Cargo.toml --github-output=$GITHUB_OUTPUT
working-directory: ./git/mmtk-ruby
- name: Checkout Ruby
uses: actions/checkout@v4
with:
repository: ${{ steps.extract-ruby-revision.outputs.ruby_repo }}
ref: ${{ steps.extract-ruby-revision.outputs.ruby_rev }}
path: ./git/ruby
- name: Setup environment
run: ./.github/scripts/ci-setup.sh
working-directory: ./git/mmtk-ruby
- name: Build MMTk Ruby ${{ matrix.debug-level }}
run: ./.github/scripts/ci-build.sh
working-directory: ./git/mmtk-ruby
- name: Run bootstrap tests (btest)
run: ./.github/scripts/ci-btest.sh
working-directory: ./git/mmtk-ruby
- name: Run all tests (test-all)
run: ./.github/scripts/ci-test-all.sh
working-directory: ./git/mmtk-ruby