This repository was archived by the owner on May 17, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (46 loc) · 1.36 KB
/
ci_test.yml
File metadata and controls
53 lines (46 loc) · 1.36 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
name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ${{ matrix.setup.os }}
strategy:
matrix:
toolchain: ['stable']
setup:
- os: 'ubuntu-22.04'
features: 'tokio,futures,io-uring'
- os: 'ubuntu-22.04'
features: 'tokio,futures,polling'
- os: 'windows-latest'
features: 'tokio,futures'
- os: 'macos-15'
features: 'tokio,futures'
steps:
- uses: actions/checkout@v6
- name: Setup Rust Toolchain
run: rustup toolchain install ${{ matrix.toolchain }}
- name: Setup target
if: ${{ matrix.setup.target }}
run: rustup +${{ matrix.toolchain }} target install ${{ matrix.setup.target }}
- name: Test on ${{ matrix.setup.os }} ${{ matrix.toolchain }} ${{ matrix.setup.target }}
shell: bash
run: |
set -ex
ARGS=()
# Add features if features is not empty
if [[ -n "${{ matrix.setup.features }}" ]]; then
ARGS+=("--features" "${{ matrix.setup.features }}")
fi
cargo +${{ matrix.toolchain }} test "${ARGS[@]}"