-
Notifications
You must be signed in to change notification settings - Fork 258
66 lines (55 loc) · 1.71 KB
/
test-jit.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
name: Test JIT
on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize, labeled]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
setup_build_matrix:
name: Outputs matrix used for cross compilation
uses: ./.github/workflows/build_matrix.yml
test:
name: Run JIT tests on ${{ matrix.build }}
runs-on: ${{ matrix.os || '-latest' }}
needs: setup_build_matrix
if: "${{ contains(github.event.pull_request.labels.*.name, 'ci: test-jit') || github.event_name == 'push' }}"
strategy:
fail-fast: false
matrix:
build:
- darwin-arm64
include:
- build: darwin-arm64
os: macos-latest
rust: stable
target: aarch64-apple-darwin
steps:
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: "20.11.0"
- name: Install Prettier
run: npm i -g prettier
- name: Install Rust Toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install Cross compilation toolchain
uses: taiki-e/setup-cross-toolchain-action@v1
with:
target: ${{ matrix.target }}
- name: Run Cargo Test
run: cargo test --test execution_spec --features force_jit -- --logfile execution_spec_output.txt
env:
RUST_BACKTRACE: 0
- name: Show Test Output
if: ${{ always() }}
run: cat execution_spec_output.txt
- name: Create Commit Comment
if: ${{ failure() }}
uses: peter-evans/commit-comment@v3
with:
body-path: execution_spec_output.txt