Skip to content

bump dependencies to last release #17

bump dependencies to last release

bump dependencies to last release #17

# ref: https://github.com/actions/runner-images
name: amd64 Linux Bazel
on: [push, pull_request, workflow_dispatch]
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
# Building using the github runner environement directly.
jobs:
native:
strategy:
matrix:
examples: [{name: basic}, {name: embed}]
cpp: [
#{version: 14, flags: "-std=c++14"},
{version: 17, flags: "-std=c++17"},
{version: 20, flags: "-std=c++20"},
]
python: [
{version: '3.11'},
{version: '3.12'},
]
fail-fast: false
name: Linux•Bzl•C++${{matrix.cpp.version}}•Py${{matrix.python.version}}•${{matrix.examples.name}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Check Java
run: java -version
- name: Setup Python
uses: actions/setup-python@v6
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: >
cd examples/${{matrix.examples.name}} &&
bazel build
--config=ci
--@rules_python//python/config_settings:python_version=${{matrix.python.version}}
--cxxopt=${{matrix.cpp.flags}} --host_cxxopt=${{ matrix.cpp.flags }}
--subcommands=pretty_print
//...
- name: Test
run: >
cd examples/${{matrix.examples.name}} &&
bazel test
--config=ci
--@rules_python//python/config_settings:python_version=${{matrix.python.version}}
--cxxopt=${{matrix.cpp.flags}} --host_cxxopt=${{ matrix.cpp.flags }}
--subcommands=pretty_print
//...
amd64_linux_bazel:
runs-on: ubuntu-latest
needs: native
steps:
- uses: actions/checkout@v5