ci: fix config #16
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: | |
- 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 build | |
uses: johnwason/vcpkg-action@v5 | |
id: vcpkg | |
with: | |
pkgs: cli11 | |
triplet: ${{ matrix.config.vcpkg_triplet }} | |
cache-key: ${{ matrix.config.os }} | |
token: ${{ github.token }} | |
- 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 | |
echo this $env:VCPKG_ROOT | |
vcpkg --version | |
- name: Build Ninja | |
run: | | |
cmake -S . -B build/ninja/ -GNinja | |
- name: Build target | |
run: | | |
cmake -S . -B build/${{ runner.os }}/ |