bazel(ci): update

* macos: uninstall bazelisk
* linux: add --subcommands=true
This commit is contained in:
Corentin Le Molgat
2023-03-31 11:39:01 +02:00
parent 4b6966f553
commit 90a4d41adf
2 changed files with 5 additions and 3 deletions

View File

@@ -27,8 +27,9 @@ jobs:
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
bazel --version
- name: Check Bazel
run: bazel version
- name: Build
run: bazel build -c opt --cxxopt=-std=c++17 //ortools/... //examples/...
run: bazel build -c opt --cxxopt=-std=c++17 --subcommands=true //ortools/... //examples/...
- name: Test
run: bazel test -c opt --cxxopt=-std=c++17 --test_output=errors //ortools/... //examples/...

View File

@@ -19,7 +19,8 @@ jobs:
- name: Install Bazel
run: |
brew update
#brew install bazel
brew unlink bazelisk
brew install bazel
- name: Check Bazel
run: bazel version
- name: Build