mirror of
https://github.com/google/or-tools.git
synced 2026-03-26 21:08:29 +00:00
Bumps the github-actions group with 1 update: [actions/setup-java](https://github.com/actions/setup-java). Updates `actions/setup-java` from 4 to 5 - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](https://github.com/actions/setup-java/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-java dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
67 lines
1.8 KiB
YAML
67 lines
1.8 KiB
YAML
# ref: https://github.com/actions/runner-images
|
|
name: arm64 MacOS Bazel
|
|
|
|
on: [push, pull_request, workflow_dispatch]
|
|
|
|
concurrency:
|
|
group: ${{github.workflow}}-${{github.ref}}
|
|
cancel-in-progress: true
|
|
|
|
# Building using the github runner environement directly.
|
|
jobs:
|
|
native:
|
|
strategy:
|
|
matrix:
|
|
python: [
|
|
#{version: '3.10'},
|
|
#{version: '3.11'},
|
|
{version: '3.12'},
|
|
#{version: '3.13'},
|
|
]
|
|
fail-fast: false
|
|
name: arm64•MacOS•Bazel•Python-${{matrix.python.version}}
|
|
runs-on: macos-latest # macos arm64 based runner
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Set Java to OpenJDK 17 (Temurin)
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '17'
|
|
- name: Check mvn
|
|
run: mvn --version
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{matrix.python.version}}
|
|
- name: Check Python
|
|
run: python --version
|
|
- name: Check Bazel
|
|
run: bazel version
|
|
- name: Change Python in .bazelrc
|
|
run: |
|
|
sed -i '' -e 's/\(python_version=\)3.[0-9]*/\1${{matrix.python.version}}/g' .bazelrc
|
|
cat .bazelrc
|
|
- name: Change Python in MODULE.bazel
|
|
run: |
|
|
sed -i '' -e 's/\(DEFAULT_PYTHON =\) "3.[0-9]*"/\1 "${{matrix.python.version}}"/g' MODULE.bazel
|
|
cat MODULE.bazel
|
|
- name: Build
|
|
run: >
|
|
bazel build
|
|
-c opt
|
|
--subcommands=pretty_print
|
|
//ortools/... //examples/...
|
|
- name: Test
|
|
run: >
|
|
bazel test
|
|
-c opt
|
|
--test_output=errors
|
|
//ortools/... //examples/...
|
|
|
|
arm64_macos_bazel:
|
|
runs-on: ubuntu-latest
|
|
needs: native
|
|
steps:
|
|
- uses: actions/checkout@v5
|