Update actions/checkout action to v4 #45
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: ci | |
on: | |
# Trigger when a push is made to master. | |
push: | |
branches: | |
- master | |
# Trigger when a pull request is made against master. | |
pull_request: | |
branches: | |
- master | |
jobs: | |
local_build: | |
name: "x86 build and test" | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
architecture: ["amd64", "aarch64", "armv7hf"] | |
# From https://github.com/marketplace/actions/setup-bazelisk | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bazelbuild/setup-bazelisk@v1 | |
- name: Mount bazel cache # Optional | |
uses: actions/cache@v2 | |
with: | |
path: "~/.cache/bazel" | |
key: bazel | |
- run: bazel build //... --config=${{ matrix.architecture }} |