Remove srcs_version
and python_version
attributes, as they alread…
#44
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ref: https://github.com/actions/runner-images | |
name: amd64 Linux Bazel | |
on: [push, pull_request, workflow_dispatch] | |
# Building using the github runner environement directly. | |
jobs: | |
native: | |
strategy: | |
matrix: | |
bazel: [ | |
{compilation_mode: opt}, | |
{compilation_mode: dbg}, | |
] | |
cpp: [ | |
{version: 14, flags: "-std=c++14"}, | |
{version: 17, flags: "-std=c++17"}, | |
{version: 20, flags: "-std=c++20"}, | |
] | |
python: [ | |
{version: '3.11'}, | |
] | |
exclude: | |
# only test `-c dbg` build with C++17 | |
- cpp: {version: 14} | |
bazel: {compilation_mode: dbg} | |
- cpp: {version: 20} | |
bazel: {compilation_mode: dbg} | |
fail-fast: false | |
name: Linux•Bazel(${{ matrix.bazel.compilation_mode }})•C++${{ matrix.cpp.version }}•Python${{ matrix.python.version }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check Java | |
run: java -version | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python.version }} | |
- name: Check Python | |
run: | | |
python --version | |
python -m platform | |
- uses: bazel-contrib/[email protected] | |
with: | |
bazelisk-cache: true | |
disk-cache: ${{ github.workflow }} | |
repository-cache: true | |
- name: Check Bazel | |
run: bazel version | |
- name: Build | |
run: > | |
bazel build | |
-c ${{ matrix.bazel.compilation_mode }} | |
--cxxopt=${{ matrix.cpp.flags }} --host_cxxopt=${{ matrix.cpp.flags }} | |
--subcommands=pretty_print | |
--enable_bzlmod | |
//... | |
- name: Test | |
run: > | |
bazel test | |
-c ${{ matrix.bazel.compilation_mode }} | |
--cxxopt=${{ matrix.cpp.flags }} --host_cxxopt=${{ matrix.cpp.flags }} | |
--subcommands=pretty_print | |
--enable_bzlmod | |
//... | |
amd64_linux_bazel: | |
runs-on: ubuntu-latest | |
needs: native | |
steps: | |
- uses: actions/checkout@v4 |