-
Notifications
You must be signed in to change notification settings - Fork 12
49 lines (47 loc) · 1.66 KB
/
pull.yml
File metadata and controls
49 lines (47 loc) · 1.66 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
name: PR Verification
on:
pull_request:
branches: [master]
jobs:
cargo:
strategy:
matrix:
runner:
- windows-latest # x86_64-windows
# - windows-11-arm # aarch64-windows
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@d39b183d8d7c85028c4b64a005898c879197d13e # v1.0.2
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Test
run: cargo test --all-targets --all-features
nix:
strategy:
matrix:
runner:
- ubuntu-latest # x86_64-linux
- macos-15-intel # x86_64-darwin
- macos-latest # aarch64-darwin
- ubuntu-24.04-arm # aarch64-linux
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: DeterminateSystems/flake-checker-action@3164002371bc90729c68af0e24d5aacf20d7c9f6 # v12
if: matrix.runner != 'macos-15-intel'
- uses: DeterminateSystems/nix-installer-action@c5a866b6ab867e88becbed4467b93592bce69f8a # v21
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@565684385bcd71bad329742eefe8d12f2e765b39 # v13
- name: Check
run: nix flake check --print-build-logs --no-update-lock-file
- name: Build
run: nix build --print-build-logs
verify:
needs: [cargo, nix]
runs-on: ubuntu-latest
steps:
- run: echo "Verified!"