-
Notifications
You must be signed in to change notification settings - Fork 21
29 lines (28 loc) · 919 Bytes
/
rust.yml
File metadata and controls
29 lines (28 loc) · 919 Bytes
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
name: Build and run tests
on: [push, pull_request]
jobs:
build:
env:
RUST_LOG: debug
name: Build and run tests
runs-on: ubuntu-latest
# Set the default working directory for all 'run' steps in this job
defaults:
run:
working-directory: libwebauthn/
steps:
- uses: actions/checkout@v2
- 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
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Check formatting
run: cargo fmt -- --check
- name: Build
run: cargo build --all-targets --all-features
- name: Run tests
run: cargo test --verbose