Feature/initial setup #1
Workflow file for this run
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: CMake Build Matrix | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
name: ${{ matrix.config.name }} | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- { | |
name: "Windows Latest MSVC", artifact: "Windows-MSVC.7z", | |
os: windows-latest, | |
cc: "cl", cxx: "cl", | |
environment_script: "C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Auxiliary/Build/vcvars64.bat", | |
# doxygen_install: choco install doxygen.install | |
} | |
- { | |
name: "Ubuntu Latest GCC", artifact: "Linux.7z", | |
os: ubuntu-latest, | |
cc: "gcc", cxx: "g++", | |
# doxygen_install: sudo apt-get install doxygen | |
} | |
- { | |
name: "macOS Latest Clang", artifact: "macOS.7z", | |
os: macos-latest, | |
cc: "clang", cxx: "clang++", | |
# doxygen_install: brew install doxygen | |
} | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Check cmake version | |
run: | | |
cmake --version | |
- name: build code | |
run: | | |
cmake -B build -S . -G "Ninja" -DCMAKE_C_COMPILER=${{ matrix.config.cc }} -DCMAKE_CXX_COMPILER=${{ matrix.config.cxx }} | |
cmake --build build --config Release |