Skip to content

build(deps): bump pygments from 2.14.0 to 2.15.0 in /bazel #306

build(deps): bump pygments from 2.14.0 to 2.15.0 in /bazel

build(deps): bump pygments from 2.14.0 to 2.15.0 in /bazel #306

# ref: https://github.com/actions/runner-images
name: amd64 Linux Bazel
on: [push, pull_request]
jobs:
# Building using the github runner environement directly.
bazel:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
fail-fast: false
env:
CC: gcc-12
CXX: g++-12
steps:
- uses: actions/checkout@v3
- name: Check Java
run: java -version
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Check Python
run: python --version
- name: Install Bazel
run: |
curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg
sudo mv bazel.gpg /etc/apt/trusted.gpg.d/
echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
sudo apt-get update
sudo apt-get install bazel
- name: Check Bazel
run: bazel version
- name: Build
run: >
bazel build
-c opt
--action_env=BAZEL_CXXOPTS="-std=c++17"
--subcommands=true
ortools/... examples/...
- name: Test
run: >
bazel test
-c opt
--action_env=BAZEL_CXXOPTS="-std=c++17"
--test_output=errors
ortools/... examples/...