Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 20 additions & 15 deletions .github/workflows/amd64_linux_bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,39 @@ concurrency:
# Building using the github runner environement directly.
jobs:
native:
name: Linux•Bzl${{matrix.bazel.version}}•C++${{matrix.cpp.version}}•Py${{matrix.python.version}}•${{matrix.examples.name}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
examples: [{name: basic}, {name: embed}]
bazel: [
#{version: "7.x"},
{version: "8.x"},
{version: "9.x"},
]
cpp: [
{version: 17, flags: "-std=c++17"},
{version: 20, flags: "-std=c++20"},
#{version: 20, flags: "-std=c++20"},
]
python: [
{version: '3.10'},
{version: '3.11'},
#{version: '3.11'},
{version: '3.12'},
{version: '3.13'},
#{version: '3.13'},
{version: '3.14'},
]
fail-fast: false
name: Linux•Bzl•C++${{matrix.cpp.version}}•Py${{matrix.python.version}}•${{matrix.examples.name}}
runs-on: ubuntu-latest
env:
USE_BAZEL_VERSION: ${{matrix.bazel.version}}
steps:
- uses: actions/checkout@v7
- name: Check Java
run: java -version
- uses: bazel-contrib/setup-bazel@0.19.0
with:
bazelisk-cache: true
disk-cache: ${{github.workflow}}
repository-cache: true
- name: Check Bazel
run: bazel version
- name: Setup Python
uses: actions/setup-python@v7
with:
Expand All @@ -39,13 +51,6 @@ jobs:
run: |
python --version
python -m platform
- uses: bazel-contrib/setup-bazel@0.19.0
with:
bazelisk-cache: true
disk-cache: ${{github.workflow}}
repository-cache: true
- name: Check Bazel
run: bazel version
- name: Build
run: >
cd examples/${{matrix.examples.name}} &&
Expand Down
8 changes: 4 additions & 4 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ module(
version = "3.0.1",
)

bazel_dep(name = "bazel_features", version = "1.43.0")
bazel_dep(name = "bazel_features", version = "1.51.0")
bazel_dep(name = "bazel_skylib", version = "1.9.0")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "rules_cc", version = "0.2.17")
bazel_dep(name = "rules_python", version = "1.9.0")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "rules_cc", version = "0.2.22")
bazel_dep(name = "rules_python", version = "2.2.0")

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.defaults(
Expand Down