-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix Bazel build and add presubmit checks Fixes a variable name and adds Bazel presubmit checks to ensure the Bazel build stays healthy. * Remove Windows from presubmit checks for now MSVC is tripping up on statement expressions in timer.h.
- Loading branch information
1 parent
f41f7fa
commit a86abb7
Showing
3 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lib/pico-sdk |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Bazel presubmit checks | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
bazel-build-check: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
fail-fast: false | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Get Bazel | ||
uses: bazel-contrib/[email protected] | ||
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 | ||
- name: Fetch latest Pico SDK | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: raspberrypi/pico-sdk | ||
ref: develop | ||
fetch-depth: 0 | ||
path: lib/pico-sdk | ||
- name: Bazel Picotool with develop pico-sdk | ||
run: bazel build @picotool//:picotool --override_module=pico-sdk=lib/pico-sdk |
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