xref: /freebsd/contrib/libfido2/.github/workflows/bsd_builds.yml (revision 397e83df75e0fcd0d3fcb95ae4d794cb7600fc89)
1# Copyright (c) 2022 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: bsd
7
8on:
9  push:
10    branches:
11    - main
12    - '*-ci'
13
14jobs:
15  build:
16    if: github.repository == 'Yubico/libfido2'
17    runs-on: ubuntu-22.04
18    strategy:
19      fail-fast: false
20      matrix:
21        image: [freebsd/13.x, openbsd/7.2]
22    steps:
23    - uses: actions/checkout@v4
24    - name: dependencies
25      run: |
26        sudo apt -q update
27        sudo apt install -q -y curl jq
28    - name: build
29      env:
30        IMAGE: ${{ matrix.image }}
31        SOURCEHUT_TOKEN: ${{ secrets.SOURCEHUT_TOKEN }}
32      run: ./.actions/build-bsd
33