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: openssl3 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 include: 24 - os: ubuntu-22.04 25 cc: gcc-11 26 - os: ubuntu-22.04 27 cc: clang-16 28 - os: ubuntu-22.04 29 cc: i686-w64-mingw32-gcc-10 30 steps: 31 - uses: actions/checkout@v4 32 - name: dependencies 33 env: 34 CC: ${{ matrix.cc }} 35 run: | 36 sudo apt -q update 37 sudo apt install -q -y libcbor-dev libudev-dev libz-dev \ 38 original-awk mandoc libpcsclite-dev 39 sudo apt remove -y libssl-dev 40 if [ "${CC%-*}" == "clang" ]; then 41 sudo ./.actions/setup_clang "${CC}" 42 elif [ "${CC%-*}" == "i686-w64-mingw32-gcc" ]; then 43 sudo apt install -q -y binutils-mingw-w64-i686 gcc-mingw-w64 \ 44 g++-mingw-w64 mingw-w64-i686-dev 45 else 46 sudo apt install -q -y "${CC}" 47 fi 48 - name: build 49 env: 50 CC: ${{ matrix.cc }} 51 run: ./.actions/build-linux-openssl3-${CC%-*} 52