-
Notifications
You must be signed in to change notification settings - Fork 9
72 lines (66 loc) · 2.12 KB
/
ci.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
name: Dacapo Tests
on:
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-22.04
steps:
# Checkout repos and submodules
- uses: actions/checkout@v2
- name: Setup Environments
run: |
./.github/scripts/ci-checkout.sh
./.github/scripts/ci-setup.sh
# Run the tests
- name: Dacapo Tests
run: ./.github/scripts/ci-test-normal.sh
style-check:
runs-on: ubuntu-22.04
steps:
# Checkout repos and submodules
- uses: actions/checkout@v2
- name: Setup Environments
run: |
./.github/scripts/ci-checkout.sh
./.github/scripts/ci-setup.sh
# Style check
- name: Style checks
run: ./.github/scripts/ci-style.sh
msrv:
runs-on: ubuntu-22.04
steps:
# Checkout repos and submodules
- uses: actions/checkout@v2
- name: Setup Environments
run: |
./.github/scripts/ci-checkout.sh
./.github/scripts/ci-setup.sh
# Do a build first to generated the file needed for the Rust crate.
- name: Build
run: |
./.github/scripts/ci-build.sh RBaseBaseNoGC
# Verify the MSRV defined in Cargo.toml
- name: Install MSRV
run: cargo +stable install cargo-msrv --locked
# Run cargo-msrv (force using i686 toolchain)
- name: Verify MSRV
id: verify-msrv
run: cargo msrv verify --path mmtk --target i686-unknown-linux-gnu -- cargo check --features semispace --target i686-unknown-linux-gnu
# If the previous step fails, find MSRV
- name: Find MSRV
if: ${{ steps.verify-msrv.outcome == 'failure' }}
run: cargo msrv find --path mmtk --target i686-unknown-linux-gnu -- cargo check --features semispace --target i686-unknown-linux-gnu
test-weak-ref:
runs-on: ubuntu-22.04
steps:
# Checkout repos
- uses: actions/checkout@v2
- name: Setup Environments
run: |
./.github/scripts/ci-checkout.sh
./.github/scripts/ci-setup.sh
# Run the tests
- name: Dacapo Tests
run: ./.github/scripts/ci-test-weak-ref.sh