Skip to content

[Init] Project Creation #1

[Init] Project Creation

[Init] Project Creation #1

Workflow file for this run

name: Build
on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
build_type: [Release, Debug]
include:
- os: ubuntu-latest
triplet: x64-linux
- os: macos-latest
triplet: x64-osx
- os: windows-latest
triplet: x64-windows
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup vcpkg
id: vcpkg
uses: vcpkg/actions/setup-vcpkg@v1
- name: Configure CMake
run: >
cmake -B build -S .
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake
-DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }}
- name: Build
run: cmake --build build --config ${{ matrix.build_type }}