-
Notifications
You must be signed in to change notification settings - Fork 155
58 lines (55 loc) · 1.7 KB
/
linux_builds.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Copyright (c) 2022-2024 Yubico AB. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# SPDX-License-Identifier: BSD-2-Clause
name: linux
on:
pull_request:
branches:
- main
push:
branches:
- main
- '*-ci'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- { os: ubuntu-20.04, cc: gcc-9 }
- { os: ubuntu-22.04, cc: gcc-10 }
- { os: ubuntu-22.04, cc: gcc-11 }
- { os: ubuntu-24.04, cc: gcc-12 }
- { os: ubuntu-24.04, cc: gcc-13 }
- { os: ubuntu-22.04, cc: clang-16 }
- { os: ubuntu-22.04, cc: clang-17 }
- { os: ubuntu-24.04, cc: clang-18 }
- { os: ubuntu-24.04, cc: clang-19 }
- { os: ubuntu-20.04, cc: i686-w64-mingw32-gcc-9 }
- { os: ubuntu-22.04, cc: i686-w64-mingw32-gcc-10 }
- { os: ubuntu-24.04, cc: i686-w64-mingw32-gcc-11 }
steps:
- uses: actions/checkout@v4
- name: dependencies
run: |
sudo apt -q update
sudo apt install -q -y libcbor-dev libudev-dev libz-dev \
original-awk mandoc libpcsclite-dev
- name: compiler
env:
CC: ${{ matrix.cc }}
run: |
if [ "${CC%-*}" == "clang" ]; then
sudo ./.actions/setup_clang "${CC}"
elif [ "${CC%-*}" == "i686-w64-mingw32-gcc" ]; then
sudo apt install -q -y binutils-mingw-w64-i686 gcc-mingw-w64 \
g++-mingw-w64 mingw-w64-i686-dev
else
sudo apt install -q -y "${CC}"
fi
- name: build
env:
CC: ${{ matrix.cc }}
run: ./.actions/build-linux-${CC%-*}