2024-12-11 16:36:45 +00:00
|
|
|
name: Build And Test
|
2021-12-16 19:29:48 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
jobs:
|
2022-01-03 15:28:16 +00:00
|
|
|
build-and-test:
|
2022-01-05 09:06:34 +00:00
|
|
|
name: Build & Test (${{ matrix.os }})
|
|
|
|
runs-on: ${{ matrix.os }}
|
2022-10-30 20:06:05 +00:00
|
|
|
continue-on-error: true
|
2022-01-05 09:06:34 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-01-30 03:45:50 +00:00
|
|
|
os: [ windows-2022, ubuntu-22.04, macos-13 ]
|
2024-12-09 18:53:19 +00:00
|
|
|
include:
|
|
|
|
- os: windows-2022
|
|
|
|
configureType: windows-msvc
|
|
|
|
- os: ubuntu-22.04
|
|
|
|
configureType: linux-gnu
|
|
|
|
- os: macos-13
|
|
|
|
configureType: macos
|
2021-12-16 19:29:48 +00:00
|
|
|
|
|
|
|
steps:
|
2024-11-18 01:03:54 +00:00
|
|
|
- uses: actions/checkout@v4
|
2021-12-16 19:29:48 +00:00
|
|
|
with:
|
|
|
|
submodules: true
|
2022-07-16 21:55:54 +00:00
|
|
|
- name: Add msbuild to PATH (Windows only)
|
2022-01-05 13:21:59 +00:00
|
|
|
if: ${{ matrix.os == 'windows-2022' }}
|
2024-11-18 01:03:54 +00:00
|
|
|
uses: microsoft/setup-msbuild@v2
|
2022-01-05 09:06:34 +00:00
|
|
|
with:
|
2022-01-05 13:29:24 +00:00
|
|
|
vs-version: '[17,18)'
|
2022-01-05 09:06:34 +00:00
|
|
|
msbuild-architecture: x64
|
2024-01-30 03:45:50 +00:00
|
|
|
- name: Install libssl and switch to XCode 15.2 (Mac Only)
|
|
|
|
if: ${{ matrix.os == 'macos-13' }}
|
|
|
|
run: |
|
|
|
|
brew install openssl@3
|
|
|
|
sudo xcode-select -s /Applications/Xcode_15.2.app/Contents/Developer
|
2022-01-03 15:30:29 +00:00
|
|
|
- name: cmake
|
2021-12-16 19:29:48 +00:00
|
|
|
uses: lukka/run-cmake@v10
|
|
|
|
with:
|
2024-12-09 19:12:37 +00:00
|
|
|
configurePreset: "${{matrix.configureType}}"
|
2024-12-09 19:07:18 +00:00
|
|
|
buildPreset: "ci-${{matrix.os}}"
|
2024-12-09 18:47:26 +00:00
|
|
|
testPreset: "ci-${{matrix.os}}"
|
|
|
|
|
2021-12-16 19:29:48 +00:00
|
|
|
- name: artifacts
|
2024-11-18 01:03:54 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2021-12-16 19:29:48 +00:00
|
|
|
with:
|
2022-01-05 09:06:34 +00:00
|
|
|
name: build-${{matrix.os}}
|
2021-12-16 19:29:48 +00:00
|
|
|
path: |
|
2024-12-11 19:26:53 +00:00
|
|
|
build/*
|