blob: ffbb54c9978912a01826a1ca46ac7c67334e535e (
plain)
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
48
|
name: linux
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
cc: gcc-10
- os: ubuntu-20.04
cc: clang-11
- os: ubuntu-18.04
cc: gcc-10
- os: ubuntu-18.04
cc: clang-10
steps:
- uses: actions/checkout@v2
- name: Setup
if: ${{ matrix.os == 'ubuntu-18.04' }}
run: |
sudo add-apt-repository -y ppa:yubico/stable
- name: dependencies
env:
CC: ${{ matrix.cc }}
run: |
sudo apt -q update
sudo apt install --no-install-recommends -q -y \
autoconf automake libtool pkg-config libfido2-dev libpam-dev \
gengetopt git2cl asciidoc-base xsltproc
if [ "${CC%-*}" == "clang" ]; then
sudo apt install -q -y ${CC%-*}-tools-${CC#clang-}
else
sudo apt install -q -y "${CC}"
fi
- name: build
env:
CC: ${{ matrix.cc }}
run: |
/bin/bash -eux build-aux/ci/build-linux-${CC%-*}.sh
- name: distcheck
env:
CC: ${{ matrix.cc }}
run: |
/bin/bash -eux build-aux/ci/distcheck.sh
|