xref: /freebsd/contrib/libfido2/.github/workflows/alpine_builds.yml (revision 60a517b66a69b8c011b04063ef63a938738719bd)
1# Copyright (c) 2022-2023 Yubico AB. All rights reserved.
2# Use of this source code is governed by a BSD-style
3# license that can be found in the LICENSE file.
4# SPDX-License-Identifier: BSD-2-Clause
5
6name: alpine
7
8on:
9  pull_request:
10    branches:
11    - main
12  push:
13    branches:
14    - main
15    - '*-ci'
16
17jobs:
18  build:
19    runs-on: ubuntu-20.04
20    container: alpine:latest
21    strategy:
22      fail-fast: false
23      matrix:
24        cc: [ gcc, clang ]
25    steps:
26    - name: dependencies
27      run: |
28        apk -q update
29        apk add build-base clang clang-analyzer cmake coreutils eudev-dev
30        apk add git linux-headers openssl-dev sudo zlib-dev pcsc-lite-dev \
31          libcbor-dev
32    - name: fix permissions on workdir
33      run: chown root:wheel "${GITHUB_WORKSPACE}"
34    - name: checkout libfido2
35      uses: actions/checkout@v4
36    - name: build libfido2
37      env:
38        CC: ${{ matrix.cc }}
39      run: ./.actions/build-linux-${CC}
40