Update release workflow to use 'ubuntu-latest' instead of 'linux-late… #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_call: | |
jobs: | |
check-format: | |
name: Check Formatting 🔍 | |
uses: ./.github/workflows/clang-format-check.yaml | |
permissions: | |
contents: read | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
build_type: [Release, Debug] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up CMake | |
uses: jwlawson/actions-setup-cmake@v2 | |
- name: Configure CMake | |
run: cmake -B build -S . -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/dist | |
- name: Build | |
run: cmake --build build --config ${{ matrix.build_type }} | |
- name: Install | |
run: cmake --install build --prefix ${{ github.workspace }}/dist --config ${{ matrix.build_type }} | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.os }}-${{ matrix.build_type }} | |
path: ${{ github.workspace }}/dist |