aboutsummaryrefslogtreecommitdiff
path: root/contrib/libfido2/.github/workflows/alpine_builds.yml
blob: c6d826f39835985a539d35a660d0f120ce9fed40 (plain) (blame)
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
# Copyright (c) 2022-2023 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: alpine

on:
  pull_request:
    branches:
    - main
  push:
    branches:
    - main
    - '*-ci'

jobs:
  build:
    runs-on: ubuntu-20.04
    container: alpine:latest
    strategy:
      fail-fast: false
      matrix:
        cc: [ gcc, clang ]
    steps:
    - name: dependencies
      run: |
        apk -q update
        apk add build-base clang clang-analyzer cmake coreutils eudev-dev
        apk add git linux-headers openssl-dev sudo zlib-dev pcsc-lite-dev \
          libcbor-dev
    - name: fix permissions on workdir
      run: chown root:wheel "${GITHUB_WORKSPACE}"
    - name: checkout libfido2
      uses: actions/checkout@v4
    - name: build libfido2
      env:
        CC: ${{ matrix.cc }}
      run: ./.actions/build-linux-${CC}