forked from raspberrypi/pico-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 963 Bytes
/
bazel_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: basic
run-name: presubmit run triggered by ${{ github.actor }}
on:
push:
branches:
- 'fix-bazel-build-2024-10-03'
jobs:
bazel-build-test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get Bazel
uses: bazel-contrib/setup-bazel@0.9.0
with:
# Avoid downloading Bazel every time.
bazelisk-cache: true
# Store build cache per workflow.
disk-cache: ${{ github.workflow }}
# Share repository cache between workflows.
repository-cache: true
# Only needed to drive the presbumit scripts.
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Presubmit
run: python3 tools/run_all_bazel_checks.py