-
Notifications
You must be signed in to change notification settings - Fork 23
25 lines (24 loc) · 850 Bytes
/
rust.yml
File metadata and controls
25 lines (24 loc) · 850 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
name: Build and run tests
on: [push, pull_request]
jobs:
build:
env:
RUST_LOG: debug
name: Build and run tests
runs-on: ubuntu-latest
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
- name: Build
run: cargo build
- name: Run tests
run: cargo test --verbose --features hid-device-tests
- name: Run u2f_hid example (virtual key)
run: cargo run --example u2f_hid --features virtual-hid-device
# - name: Run webauthn_hid example (virtual key)
# run: cargo run --example webauthn_hid --features virtual-hid-device