-
Notifications
You must be signed in to change notification settings - Fork 25
47 lines (46 loc) · 1.89 KB
/
Copy pathrust-latest.yml
File metadata and controls
47 lines (46 loc) · 1.89 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: Latest stable toolchain
on:
push:
branches: [master]
schedule:
- cron: '37 10 * * 6'
workflow_dispatch:
jobs:
latest-stable:
env:
RUST_LOG: debug
# Early warning for toolchain drift. The build job is pinned, so without this a new
# compiler or a new clippy lint would go unnoticed until someone bumped the pin by hand.
# It does not run on pull requests, so it can never block a merge.
name: Build and run tests on latest stable
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Update apt cache
run: sudo apt-get update
- name: Install system dependencies
run: sudo apt-get install libudev-dev libdbus-1-dev libsodium-dev libnfc-dev libpcsclite-dev publicsuffix
- name: Install latest stable toolchain
run: rustup toolchain install stable --profile minimal -c clippy,rustfmt && rustup default stable
- name: Clippy
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
- name: Check formatting
run: cargo fmt --all -- --check
- name: Build
run: cargo build --workspace --all-targets --all-features
- name: Build with only nfc-backend-pcsc
run: cargo build -p libwebauthn --examples --features nfc-backend-pcsc
- name: Build with only nfc-backend-libnfc
run: cargo build -p libwebauthn --examples --features nfc-backend-libnfc
- name: Run tests
run: cargo test --workspace --verbose
env:
LIBWEBAUTHN_PSL_SYSTEM_TEST: "1"
- name: Run tests with nfc-backend-pcsc
run: cargo test -p libwebauthn --lib --features nfc-backend-pcsc --verbose
env:
LIBWEBAUTHN_PSL_SYSTEM_TEST: "1"
- name: Verify libwebauthn publishes cleanly
run: cargo publish --dry-run -p libwebauthn