Skip to content

Commit

Permalink
Specify version suffix for GCC.
Browse files Browse the repository at this point in the history
On macOS, plain “gcc” invokes Clang, but “gcc-14” invokes GCC.

See https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md#language-and-runtime.
  • Loading branch information
phst committed Mar 4, 2025
1 parent edd6c7b commit e842a2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/actions/set-up/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ inputs:
required: false
default: >-
${{
runner.os == 'Linux' && 'gcc'
runner.os == 'Linux' && 'gcc-14'
|| (runner.os == 'macOS' && 'clang' || 'msvc')
}}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/bazel-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
# allow Bazel to cache intermediate results between the test runs.
bazel: [7.2.1, 7.5.0, 8.1.1, latest]
os: [ubuntu-latest, macos-latest, windows-latest]
cc: [gcc, clang, msvc]
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.
Expand All @@ -40,10 +40,10 @@ jobs:
- os: macos-latest
cc: msvc
- os: windows-latest
cc: gcc
cc: gcc-14
# Exclude non-default compilers for now. We should add them later.
- os: macos-latest
cc: gcc
cc: gcc-14
fail-fast: false
runs-on: ${{matrix.os}}
steps:
Expand Down

0 comments on commit e842a2c

Please sign in to comment.