Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
anrp-tri authored and anrp committed Oct 18, 2023
1 parent 3fde8cc commit 9a8e3c4
Showing 1 changed file with 28 additions and 11 deletions.
39 changes: 28 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,28 @@
- name: Setup Bazelisk
# You may pin to the exact commit or the version.
# uses: bazelbuild/setup-bazelisk@2351cf5a7584ce72638fbce7c22e5128a5fcd5b2
uses: bazelbuild/[email protected]
with:
# The Bazelisk version to download (if necessary) and use. Supports semver spec and ranges.
bazelisk-version: # optional, default is 1.x
# Used to query bazelisk releases. Since there's a default, this is typically not supplied by the user.
token: # optional, default is ${{ github.token }}
- name: bazel build
run: bazel build //... -k
name: 'Run bazel build'

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
permissions:
contents: read
pull-requests: read
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
# This line defines a job with the ID `check-links` that is stored within the `jobs` key.
bazel_build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Bazelisk
uses: bazelbuild/[email protected]

- name: bazel build
run: bazel build //... -k

0 comments on commit 9a8e3c4

Please sign in to comment.