xref: /freebsd/contrib/libfido2/.github/workflows/macos_builds.yml (revision 60a517b66a69b8c011b04063ef63a938738719bd)
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: macos
7
8on:
9  pull_request:
10    branches:
11    - main
12  push:
13    branches:
14    - main
15    - '*-ci'
16
17jobs:
18  build:
19    runs-on: ${{ matrix.os }}
20    strategy:
21      fail-fast: false
22      matrix:
23        os: [ macos-13, macos-12 ]
24        cc: [ clang ]
25    steps:
26    - uses: actions/checkout@v4
27    - name: dependencies
28      run: brew install libcbor llvm mandoc openssl@3.0 pkg-config zlib
29    - name: build
30      env:
31        CC: ${{ matrix.cc }}
32      run: ./.actions/build-osx-clang
33