From 2ea441b60ec1fc7fe709e5ec52c4ce427337ece5 Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Fri, 17 Feb 2023 16:15:40 +0100 Subject: [PATCH] bazel(ci): Fix MacOS JDK --- .github/workflows/bazel_macos.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/bazel_macos.yml b/.github/workflows/bazel_macos.yml index 531de38eaf..d8b32f89cb 100644 --- a/.github/workflows/bazel_macos.yml +++ b/.github/workflows/bazel_macos.yml @@ -1,11 +1,6 @@ name: Bazel MacOS -on: - push: - pull_request: - schedule: - # min hours day(month) month day(week) - - cron: '0 0 7,22 * *' +on: [push, pull_request] jobs: bazel: @@ -13,13 +8,19 @@ jobs: steps: - name: Check out repository code uses: actions/checkout@v3 - - name: Check java - run: java -version + - 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 install bazel - bazel --version + - name: Check Bazel + run: bazel version - name: Build run: bazel build -c opt --cxxopt=-std=c++20 //ortools/... //examples/... - name: Test