Skip to content

cron-master-tokio-arm #357

cron-master-tokio-arm

cron-master-tokio-arm #357

name: cron-master-tokio-arm
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
- 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; WORKFLOW=1 exec cargo nextest run -F="tokio" --hide-progress-bar -j 1 --no-capture
- name: Run tests with tokio multi thread --release with trace log
run: cd test-suite; 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 with trace_log
run: cd test-suite; WORKFLOW=1 SINGLE_THREAD_RUNTIME=1 exec cargo nextest run -F="tokio,trace_log" --hide-progress-bar -j 1 --no-capture -r
- name: Run tests with tokio multi thread --release
run: cd test-suite; WORKFLOW=1 exec cargo nextest run -F="tokio" --hide-progress-bar -j 1 --no-capture -r
- name: Run tests with tokio single-thread --release
run: cd test-suite; WORKFLOW=1 SINGLE_THREAD_RUNTIME=1 exec cargo nextest run -F="tokio" --hide-progress-bar -j 1 --no-capture -r
- name: Dump log on cancel
if: ${{ cancelled() }}
uses: actions/upload-artifact@v4
with:
name: crossfire_ring
path: /tmp/crossfire_ring.log