Skip to content

put job.run_check_id in GH_JOB_RUN_ID #25

put job.run_check_id in GH_JOB_RUN_ID

put job.run_check_id in GH_JOB_RUN_ID #25

Workflow file for this run

name: cmake-test
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
jobs:
job:
name: ${{ matrix.os }}-${{ matrix.os_version }}-${{ matrix.compiler }}-${{ matrix.build_type }}
runs-on: ${{ matrix.os }}-${{ matrix.os_version }}
strategy:
fail-fast: false
matrix:
os: [macos, ubuntu, windows]
os_version: [latest]
compiler: [cl, clang++, g++]
build_type: [debug, release]
include:
- os: macos
compiler: clang++
triplet: arm64-osx
- os: ubuntu
compiler: clang++
triplet: x64-linux
- os: ubuntu
compiler: g++
triplet: x64-linux
- os: windows
compiler: cl
triplet: x64-windows
exclude:
- os: macos
compiler: cl
- os: macos
compiler: g++
- os: ubuntu
compiler: cl
- os: windows
compiler: clang++
- os: windows
compiler: g++
env:
VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }}
VCPKG_DISABLE_METRICS: true
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Print check_run_id
run: |
echo "job check_run_id: ${{ job.check_run_id }}"
- uses: ilammy/msvc-dev-cmd@v1
- uses: friendlyanon/setup-vcpkg@v1
with:
committish: e3db8f65d2414c301c29a8467c6aee94e3ba09fc
cache-key: vcpkg-${{ job.check_run_id }}-${{ hashFiles('vcpkg.json', '.github/vcpkg_overlays/**') }}
ignore-reserve-cache-error: true
- run: cmake --preset default
- run: cmake --build --parallel --preset default
- run: ctest --preset default --output-on-failure