-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use bazel-contrib/setup-bazel
- Loading branch information
Showing
6 changed files
with
68 additions
and
32 deletions.
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
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
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 |
---|---|---|
|
@@ -5,6 +5,9 @@ on: | |
branches: | ||
- main | ||
|
||
env: | ||
BAZEL_REPO_CACHE_PATH: '~/.cache/bazel_repo_cache' | ||
|
||
jobs: | ||
adev-build: | ||
runs-on: ubuntu-latest | ||
|
@@ -16,6 +19,22 @@ jobs: | |
with: | ||
node-version-file: '.node-version' | ||
cache: yarn | ||
- uses: bazel-contrib/[email protected] | ||
with: | ||
bazelisk-cache: true | ||
disk-cache: true | ||
repository-cache: true | ||
bazelrc: | | ||
# Print all the options that apply to the build. | ||
# This helps us diagnose which options override others | ||
# (e.g. /etc/bazel.bazelrc vs. tools/bazel.rc) | ||
build --announce_rc | ||
# More details on failures | ||
build --verbose_failures=true | ||
# CI supports colors but Bazel does not detect it. | ||
common --color=yes | ||
- run: yarn install | ||
- run: yarn build | ||
- name: Deploy to cloudflare pages | ||
|
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 |
---|---|---|
|
@@ -8,6 +8,9 @@ on: [pull_request] | |
permissions: | ||
contents: read | ||
|
||
env: | ||
BAZEL_REPO_CACHE_PATH: '~/.cache/bazel_repo_cache' | ||
|
||
jobs: | ||
# test: | ||
# runs-on: ubuntu-latest | ||
|
@@ -31,6 +34,22 @@ jobs: | |
with: | ||
node-version-file: '.node-version' | ||
cache: yarn | ||
- uses: bazel-contrib/[email protected] | ||
with: | ||
bazelisk-cache: true | ||
disk-cache: true | ||
repository-cache: true | ||
bazelrc: | | ||
# Print all the options that apply to the build. | ||
# This helps us diagnose which options override others | ||
# (e.g. /etc/bazel.bazelrc vs. tools/bazel.rc) | ||
build --announce_rc | ||
# More details on failures | ||
build --verbose_failures=true | ||
# CI supports colors but Bazel does not detect it. | ||
common --color=yes | ||
- run: yarn install | ||
- run: yarn build | ||
# build-windows: | ||
|
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
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