-
Notifications
You must be signed in to change notification settings - Fork 46
47 lines (41 loc) · 1.04 KB
/
rust.yml
File metadata and controls
47 lines (41 loc) · 1.04 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
name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
rust:
- stable
- nightly
- 1.65.0
os:
- ubuntu-latest
- macos-11
- windows-2022
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install old nightly for minimal-versions (produces v3 lockfile)
if: matrix.rust == '1.65.0'
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2024-02-01
- name: Generate minimal-versions lockfile
if: matrix.rust == '1.65.0'
run: cargo +nightly-2024-02-01 -Z minimal-versions generate-lockfile
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
components: rustfmt, clippy
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run tests (release)
run: cargo test --release --verbose