Skip to content

feat: ci

feat: ci #189

Workflow file for this run

name: Build
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
architecture: [x64, arm64]
exclude:
- os: ubuntu-latest
architecture: arm64
- os: windows-latest
architecture: arm64
steps:
# Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3
# Setup vcpkg
- name: Set up vcpkg
run: |
git clone https://github.com/microsoft/vcpkg.git
./vcpkg/bootstrap-vcpkg.sh
env:
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
# Configure and build the project using CMake presets
- name: Configure and build with CMake Presets
run: |
cmake --preset $([[ "${{ runner.os }}" == "Windows" ]] && echo "windows-release" || echo "unix-release")
cmake --build --preset $([[ "${{ runner.os }}" == "Windows" ]] && echo "windows-release" || echo "unix-release")
env:
VCPKG_ROOT: ${{ github.workspace }}/vcpkg