Skip to content

try use default

try use default #19

Workflow file for this run

name: Build
on:
push:
branches:
- master
- docs
paths:
- '**.yml'
- 'include/**'
- 'src/**'
pull_request:
branches:
- master
paths:
- '**.yml'
- 'include/**'
- 'src/**'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
publish-doc:
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- os: ubuntu-latest
vcpkg_triplet: x64-linux-release
- os: macos-latest
vcpkg_triplet: x64-osx-release
- os: windows-latest
vcpkg_triplet: x64-windows-release
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install latest CMake and Ninja
uses: lukka/[email protected]
- name: Install LLVM and Clang
uses: KyleMayes/[email protected]
with:
version: "14.0"
- name: vcpkg list version
run: vcpkg --version
- name: Setup VCPKG_ROOT (Unix)
if: matrix.config.os == 'ubuntu-latest' || matrix.config.os == 'macos-latest'
run: |
echo "VCPKG_ROOT=${{ github.workspace }}/vcpkg/" >> $GITHUB_ENV
- name: Setup VCPKG_ROOT (Windows)
if: matrix.config.os == 'windows-latest'
run: |
echo "VCPKG_ROOT=${{ github.workspace }}\vcpkg\" >> $env:GITHUB_ENV
- name: List vcpkg
run: vcpkg list
- name: Build Ninja
run: |
cmake -S . -B build/ninja/ -GNinja
- name: Build target
run: |
cmake -S . -B build/${{ runner.os }}/