Skip to content

Merge branch 'main' of github.com:google/or-tools #148

Merge branch 'main' of github.com:google/or-tools

Merge branch 'main' of github.com:google/or-tools #148

# 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 --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/...