-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (36 loc) · 1.1 KB
/
ci-linux.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
name: CI Linux
on:
push:
branches:
- master
paths:
- 'Makefile'
- '*.c'
- '.github/workflows/ci-linux.yml'
pull_request:
branches:
- master
paths:
- 'Makefile'
- '*.c'
- '.github/workflows/ci-linux.yml'
workflow_dispatch:
jobs:
linux-build-and-run:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install other build deps
run: sudo apt-get install -y libyubikey-dev libbsd-dev
- name: Build yksoft
run: make
- name: Run yksoft (init)
run: test $(./yksoft -f /tmp/yksoft not_a_physical_token | cut -d ',' -f 3 | tr -d '[:space:]' | wc -c) -eq 32; ls -l /tmp/yksoft
- name: Examine token
run: cat /tmp/yksoft/not_a_physical_token
- name: Run yksoft (next)
run: test $(./yksoft -f /tmp/yksoft not_a_physical_token | tr -d '[:space:]' | wc -c) -eq 44
- name: Parse OTP with ykparse
run: ykparse $(./yksoft -f /tmp/yksoft -r not_a_physical_token | cut -d ',' -f 3 | tr -d '[:space:]') $(./yksoft -f /tmp/yksoft not_a_physical_token)