xref: /freebsd/contrib/libfido2/.github/workflows/bsd_builds.yml (revision 60a517b66a69b8c011b04063ef63a938738719bd)
1*60a517b6SEd Maste# Copyright (c) 2022 Yubico AB. All rights reserved.
2*60a517b6SEd Maste# Use of this source code is governed by a BSD-style
3*60a517b6SEd Maste# license that can be found in the LICENSE file.
4*60a517b6SEd Maste# SPDX-License-Identifier: BSD-2-Clause
5*60a517b6SEd Maste
6*60a517b6SEd Mastename: bsd
7*60a517b6SEd Maste
8*60a517b6SEd Masteon:
9*60a517b6SEd Maste  push:
10*60a517b6SEd Maste    branches:
11*60a517b6SEd Maste    - main
12*60a517b6SEd Maste    - '*-ci'
13*60a517b6SEd Maste
14*60a517b6SEd Mastejobs:
15*60a517b6SEd Maste  build:
16*60a517b6SEd Maste    if: github.repository == 'Yubico/libfido2'
17*60a517b6SEd Maste    runs-on: ubuntu-22.04
18*60a517b6SEd Maste    strategy:
19*60a517b6SEd Maste      fail-fast: false
20*60a517b6SEd Maste      matrix:
21*60a517b6SEd Maste        image: [freebsd/13.x, openbsd/7.2]
22*60a517b6SEd Maste    steps:
23*60a517b6SEd Maste    - uses: actions/checkout@v4
24*60a517b6SEd Maste    - name: dependencies
25*60a517b6SEd Maste      run: |
26*60a517b6SEd Maste        sudo apt -q update
27*60a517b6SEd Maste        sudo apt install -q -y curl jq
28*60a517b6SEd Maste    - name: build
29*60a517b6SEd Maste      env:
30*60a517b6SEd Maste        IMAGE: ${{ matrix.image }}
31*60a517b6SEd Maste        SOURCEHUT_TOKEN: ${{ secrets.SOURCEHUT_TOKEN }}
32*60a517b6SEd Maste      run: ./.actions/build-bsd
33