-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 892 Bytes
/
ci-rust.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
name: CI-rs
on:
pull_request:
branches: [main]
push:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: testing-${{ matrix.toolchain }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
toolchain:
- stable
os:
- ubuntu-latest
- windows-latest
- macos-latest
include:
- toolchain: 1.78.0 # test MSRV
os: ubuntu-latest
- toolchain: nightly
os: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install toolchain
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Log active toolchain
run: rustup show
- name: Run cargo test in release mode
run: cargo test --all --release