chore(deps): update actions/checkout action to v4 #26
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: | |
push: {} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- name: Mount bazel cache | |
uses: actions/cache@v2 | |
with: | |
path: "/home/runner/.cache/bazel" | |
key: bazel | |
- name: Build | |
run: | | |
# Retry 5 times if snapshot fetch fails | |
for i in {1..5}; do bazelisk build //... && break || sleep 5; done | |
# Build a specific target | |
bazelisk build //tests/libusb_app:listdevs | |
- name: Test bin example | |
run: | | |
bazel run @bash//:bin/bash -- --help |