Skip to content

Commit b369609

Browse files
committed
update github actions
1 parent d98729a commit b369609

2 files changed

Lines changed: 5 additions & 21 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,29 +28,13 @@ jobs:
2828
# Steps represent a sequence of tasks that will be executed as part of the job
2929
steps:
3030
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
31-
- uses: actions/checkout@v3
32-
- uses: bazelbuild/setup-bazelisk@v2
33-
- name: Mount bazel action cache
34-
uses: actions/cache@v3
35-
with:
36-
path: "~/.cache/bazel"
37-
key: bazel
38-
- name: Mount bazel repo cache
39-
uses: actions/cache@v3
40-
with:
41-
path: "~/.cache/bazel-repo"
42-
key: bazel-repo
31+
- uses: actions/checkout@v4
4332
- name: Set Bazelisk Version ${{ matrix.bazel }}
4433
run: echo ${{ matrix.bazel }} > .bazelversion
34+
- uses: bazel-contrib/setup-bazel@0.15.0
4535
- name: Build
4636
shell: bash
47-
env:
48-
# Bazelisk will download bazel to here
49-
XDG_CACHE_HOME: ~/.cache/bazel-repo
5037
run: bazel --bazelrc=.github/workflows/ci.bazelrc --bazelrc=.bazelrc build ...
5138
- name: Test
5239
shell: bash
53-
env:
54-
# Bazelisk will download bazel to here
55-
XDG_CACHE_HOME: ~/.cache/bazel-repo
5640
run: bazel --bazelrc=.github/workflows/ci.bazelrc --bazelrc=.bazelrc test ...

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v3
17-
- uses: bazelbuild/setup-bazelisk@v2
16+
uses: actions/checkout@v4
17+
- uses: bazel-contrib/setup-bazel@0.15.0
1818
- name: Check git state is clean
1919
run: git status --porcelain
2020
- name: Export release version
@@ -29,7 +29,7 @@ jobs:
2929
- name: Export checksum
3030
run: 'echo "RELEASE_CHECKSUM=$(shasum -b -a 256 bazel-bin/slamdev_toolchain_chromium-v${{ env.RELEASE_VERSION }}.tar.gz | cut -d " " -f 1)" >> $GITHUB_ENV'
3131
- name: Upload release
32-
uses: softprops/action-gh-release@v1
32+
uses: softprops/action-gh-release@v2
3333
with:
3434
files: bazel-bin/slamdev_toolchain_chromium-v${{ env.RELEASE_VERSION }}.tar.gz
3535
fail_on_unmatched_files: true

0 commit comments

Comments
 (0)