-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (43 loc) · 1.28 KB
/
test.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Cargo Build & Test
on:
push:
branches: [ "main", "development" ]
pull_request:
branches: [ "main", "development" ]
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: nps build and test - latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
toolchain: [stable, beta, nightly]
exclude:
- os: [windows-latest, macos-latest]
- toolchain: [beta, nightly]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install nix
uses: cachix/install-nix-action@v27
- name: Set up nix
run: |
nix build
nix flake check
- name: Setting up channels
run: |
nix-channel --add https://nixos.org/channels/nixos-unstable nixos
nix-channel --update
- name: Test nix search
run: |
echo "channels..."
nix-env -qaP --description
echo "end test nix search"
- name: Install Rust
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Run tests
run: |
cargo build --verbose
RUST_LOG=TRACE cargo test --verbose -- --include-ignored --nocapture