-
Notifications
You must be signed in to change notification settings - Fork 121
70 lines (64 loc) · 1.79 KB
/
ci_test_executor.yml
File metadata and controls
70 lines (64 loc) · 1.79 KB
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
name: TestExecutor
on:
merge_group:
types: [checks_requested]
push:
branches:
- master
paths:
- 'compio-executor/**/*.rs'
- 'compio-executor/Cargo.toml'
- 'Cargo.toml'
- '.github/workflows/ci_test_executor.yml'
pull_request:
branches:
- master
paths:
- 'compio-executor/**/*.rs'
- 'compio-executor/Cargo.toml'
- 'Cargo.toml'
- '.github/workflows/ci_test_executor.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
jobs:
test_executor:
strategy:
matrix:
setup:
- os: 'ubuntu-24.04'
- os: 'ubuntu-24.04-arm'
- os: 'windows-latest'
target: 'x86_64-pc-windows-msvc'
- os: 'windows-latest'
target: 'x86_64-pc-windows-gnu'
- os: 'macos-14'
- os: 'macos-15'
runs-on: ${{ matrix.setup.os }}
steps:
- uses: actions/checkout@v6
- name: Setup Rust Toolchain
run: |
rustup toolchain install nightly -c miri -c rust-src
rustup override set nightly
- name: Setup target
if: ${{ matrix.setup.target }}
run: rustup target install ${{ matrix.setup.target }}
- uses: taiki-e/install-action@nextest
- name: Test loom on ${{ matrix.setup.os }} nightly ${{ matrix.setup.target }}
shell: bash
run: |
set -ex
cargo miri test \
-p compio-executor \
--test executor
RUSTFLAGS="--cfg loom" \
LOOM_LOCATION=1 \
LOOM_LOG=info,compio_executor=trace \
cargo nextest run \
--profile loom \
--features enable_log \
-p compio-executor