-
Notifications
You must be signed in to change notification settings - Fork 13
44 lines (33 loc) · 1.32 KB
/
cron_dev_arm_trace.yml
File metadata and controls
44 lines (33 loc) · 1.32 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
name: cron-dev-arm-trace
on:
schedule: [cron: "0 */5 * * *"]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
runs-on: "macos-15"
steps:
- uses: actions/checkout@v2
with:
ref: dev
- name: Rust version
run: rustc -V
- name: rustup
run: rustup show
- name: Build
run: cargo build --verbose
# We use cargo-nextest because cargo test does not forward cancellation signal
- uses: taiki-e/install-action@nextest
- name: Run tests with tokio multi-thread
run: cd test-suite; RUSTFLAGS="--cfg tokio_unstable" WORKFLOW=1 exec cargo nextest run -F="tokio,trace_log" --hide-progress-bar -j 1 --no-capture
- name: Run tests with tokio multi thread --release
run: cd test-suite; RUSTFLAGS="--cfg tokio_unstable" WORKFLOW=1 exec cargo nextest run -F="tokio,trace_log" --hide-progress-bar -j 1 --no-capture -r
- name: Run tests with tokio single-thread --release
run: cd test-suite; RUSTFLAGS="--cfg tokio_unstable" WORKFLOW=1 SINGLE_THREAD_RUNTIME=1 exec cargo nextest run -F="tokio,trace_log" --hide-progress-bar -j 1 --no-capture -r
- name: Dump log on cancel
if: ${{ cancelled() || failure() }}
uses: actions/upload-artifact@v4
with:
name: crossfire_ring
path: /tmp/crossfire_ring.log