-
Notifications
You must be signed in to change notification settings - Fork 9
50 lines (46 loc) · 1.64 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
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
- name: Style checks
run: ./.github/scripts/ci-style.sh
# Verify the MSRV defined in Cargo.toml - this has to run after a normal build, as the binding needs entrypoint.rs to be generated during build.
- name: Install MSRV
run: cargo +stable install cargo-msrv --locked
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
# 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