Skip to content

Fix CMake build in test subdirectories #150

Fix CMake build in test subdirectories

Fix CMake build in test subdirectories #150

# ref: https://github.com/actions/runner-images
name: amd64 MacOS Bazel
on: [push, pull_request]
jobs:
bazel:
runs-on: macos-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set Java to OpenJDK 17 (Temurin)
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Check mvn
run: mvn --version
- name: Install Bazel
run: |
brew update
brew unlink bazelisk
brew install bazel
- name: Check Bazel
run: bazel version
- name: Build
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/...