Skip to content

chore(deps): update github/codeql-action action to v3.28.8 (#69) #142

chore(deps): update github/codeql-action action to v3.28.8 (#69)

chore(deps): update github/codeql-action action to v3.28.8 (#69) #142

Workflow file for this run

name: Build and Test (vcpkg)
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: Build and Test (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
triplet: arm64-osx-release
- os: ubuntu-24.04
triplet: x64-linux-release
runs-on: ${{ matrix.os }}
permissions:
contents: read
env:
VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }}
VCPKG_DEFAULT_HOST_TRIPLET: ${{ matrix.triplet }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
with:
egress-policy: audit
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: true
- name: Set up cmake and ninja
uses: lukka/get-cmake@5f6e04f5267c8133f1273bf2103583fc72c46b17 # v3.31.5
- name: Set up vcpkg
uses: lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
- name: Build
run: |
cmake -B build --toolchain vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build build
- name: Test
run: ctest --test-dir build
- name: Install
run: sudo cmake --install build
- name: Smoke test
run: |
cmake -B build --toolchain ../vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build build
./build/ci-cmake
./build/ci-pkgconfig
working-directory: ci