Drop OTP 24 from test matrix #216
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
bazel_otp_name: | |
- "arm64" | |
steps: | |
- name: CHECKOUT | |
uses: actions/checkout@v4 | |
- name: MOUNT BAZEL CACHE | |
uses: actions/cache@v4.0.2 | |
with: | |
path: "/home/runner/repo-cache/" | |
key: ${{ runner.os }}-repo-cache-${{ hashFiles('MODULE.bazel','WORKSPACE.bazel','extensions.bzl') }} | |
restore-keys: | | |
${{ runner.os }}-repo-cache- | |
- name: CONFIGURE BAZEL | |
run: | | |
if [ -n "${{ secrets.BUILDBUDDY_API_KEY }}" ]; then | |
cat << EOF >> user.bazelrc | |
build:buildbuddy --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_API_KEY }} | |
EOF | |
fi | |
cat << EOF >> user.bazelrc | |
build:buildbuddy --build_metadata=ROLE=CI | |
build:buildbuddy --build_metadata=VISIBILITY=PUBLIC | |
build:buildbuddy --repository_cache=/home/runner/repo-cache/ | |
build:buildbuddy --color=yes | |
build:buildbuddy --disk_cache= | |
EOF | |
bazelisk info release | |
- name: TEST | |
run: | | |
bazelisk build //... \ | |
--config=rbe-${{ matrix.bazel_otp_name }} \ | |
--verbose_failures | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
bazel_otp_name: | |
- "25" | |
- "26" | |
steps: | |
- name: CHECKOUT | |
uses: actions/checkout@v4 | |
- name: MOUNT BAZEL CACHE | |
uses: actions/cache@v4.0.2 | |
with: | |
path: "/home/runner/repo-cache/" | |
key: ${{ runner.os }}-repo-cache-${{ hashFiles('MODULE.bazel','WORKSPACE.bazel','extensions.bzl') }} | |
restore-keys: | | |
${{ runner.os }}-repo-cache- | |
- name: CONFIGURE BAZEL | |
run: | | |
if [ -n "${{ secrets.BUILDBUDDY_API_KEY }}" ]; then | |
cat << EOF >> user.bazelrc | |
build:buildbuddy --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_API_KEY }} | |
EOF | |
fi | |
cat << EOF >> user.bazelrc | |
build:buildbuddy --build_metadata=ROLE=CI | |
build:buildbuddy --build_metadata=VISIBILITY=PUBLIC | |
build:buildbuddy --repository_cache=/home/runner/repo-cache/ | |
build:buildbuddy --color=yes | |
build:buildbuddy --disk_cache= | |
EOF | |
bazelisk info release | |
- name: TEST | |
run: | | |
bazelisk test //... \ | |
--config=rbe-${{ matrix.bazel_otp_name }} \ | |
--verbose_failures |