-
-
Notifications
You must be signed in to change notification settings - Fork 24
35 lines (35 loc) · 1.1 KB
/
go.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
on: [push]
name: Test
jobs:
test:
strategy:
matrix:
os: ["macos-13", "macos-latest", "windows-latest", "ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- name: Install dependencies (ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt update
sudo apt install libfido2-dev
- name: Install dependencies (macos)
if: matrix.os == 'macos-latest' || matrix.os == 'macos-13'
run: |
brew install libfido2
- name: Install scoop (windows)
if: matrix.os == 'windows-latest'
uses: MinoruSekine/setup-scoop@main
- name: Install dependencies (windows)
if: matrix.os == 'windows-latest'
run: |
scoop bucket add keys.pub https://github.com/keys-pub/scoop-bucket
scoop install libfido2
echo "$HOME/scoop/apps/libfido2/current" >> $GITHUB_PATH
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: 1.20.x
- name: Checkout code
uses: actions/checkout@v2
- name: Build
run: go build