Skip to content

Merge pull request #3 from actions-ext/dependabot/github_actions/acti… #8

Merge pull request #3 from actions-ext/dependabot/github_actions/acti…

Merge pull request #3 from actions-ext/dependabot/github_actions/acti… #8

Workflow file for this run

name: Build Status
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: ./setup
- uses: ./setup-vcpkg-cache
id: vcpkg-cache
with:
manifest: tests/vcpkg.json
overlay_ports: tests/vcpkg-overlays
- name: Verify vcpkg cache
run: |
test -n "${{ steps.vcpkg-cache.outputs.vcpkg-revision }}"
test -d "$VCPKG_DEFAULT_BINARY_CACHE"
git -C vcpkg rev-parse --verify HEAD
shell: bash
- name: Verify tools (Linux / macOS)
run: |
clang-format --dry-run --Werror tests/hello.cpp
ccache c++ tests/hello.cpp -o hello
./hello
ccache --show-stats
shell: bash
if: runner.os != 'Windows'
- name: Verify tools (Windows)
run: |
if not "%CC%"=="sccache cl" exit /b 1
where cl
where sccache
clang-format --dry-run --Werror tests\hello.cpp
sccache cl /nologo /EHsc tests\hello.cpp /Fe:hello.exe
hello.exe
sccache --show-stats
shell: cmd
if: runner.os == 'Windows'