Skip to content

Update phst_update_workspace_snippets digest to 5a40d9f #4228

Update phst_update_workspace_snippets digest to 5a40d9f

Update phst_update_workspace_snippets digest to 5a40d9f #4228

Workflow file for this run

# Copyright 2021, 2022, 2023, 2024, 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Run Bazel tests
on: push
permissions:
contents: read
jobs:
test:
name: Test
strategy:
matrix:
# We don’t use the GitHub matrix support for the Emacs toolchain to
# allow Bazel to cache intermediate results between the test runs.
bazel: [7.2.1, 7.6.1, 8.2.1, latest]
os: [ubuntu-latest, macos-latest, windows-latest]
cc: [gcc-14, clang, msvc]
exclude:
# Visual C++ works only on Windows. Windows doesn’t use the CC
# environment variable and always uses Visual C++ by default.
- os: ubuntu-latest
cc: msvc
- os: macos-latest
cc: msvc
- os: windows-latest
cc: gcc-14
fail-fast: false
runs-on: ${{matrix.os}}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up workspace
uses: ./.github/actions/set-up
with:
bazel-version: ${{matrix.bazel}}
cc: ${{matrix.cc}}
- name: Run Bazel tests
shell: pwsh
# FIXME: Run ‘bazel coverage’ unconditionally once
# https://github.com/bazelbuild/bazel/issues/6374 and
# https://github.com/bazelbuild/bazel/issues/18839 are fixed.
run: >
./check.ps1
${{
runner.os != 'Windows' &&
(runner.os != 'macOS' || matrix.cc != 'gcc-14') &&
'-Coverage'
}}
- name: Run OS-independent checks
if: runner.os == 'Linux'
shell: bash
run: |
make check-extra