Skip to content

Commit

Permalink
Merge pull request #18 from archonitelabs/use-arm64-runners
Browse files Browse the repository at this point in the history
test on ARM64 GitHub runners
  • Loading branch information
jxy-s authored Jun 4, 2024
2 parents 4083be0 + 2a4b621 commit 915583b
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bazel
uses: bazel-contrib/[email protected].2
uses: bazel-contrib/[email protected].5
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
Expand All @@ -31,7 +31,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bazel
uses: bazel-contrib/[email protected].2
uses: bazel-contrib/[email protected].5
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bazel
uses: bazel-contrib/[email protected].2
uses: bazel-contrib/[email protected].5
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
Expand Down
41 changes: 35 additions & 6 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,20 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bazel
uses: bazel-contrib/[email protected]
uses: bazel-contrib/[email protected]
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Build and Run Unit Tests
run: bazel test --test_output=all //...
Linux-ARM64:
runs-on: archonite-linux-arm64
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bazel
uses: bazel-contrib/[email protected]
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
Expand All @@ -31,7 +44,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bazel
uses: bazel-contrib/[email protected].2
uses: bazel-contrib/[email protected].5
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
Expand All @@ -44,12 +57,28 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bazel
uses: bazel-contrib/[email protected].2
uses: bazel-contrib/[email protected].5
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Build and Run Unit Tests
# extra slash is an intentional hack, powershell converts a // to /
run: bazel test --test_output=all ///...
shell: bash
run: bazel test --test_output=all //...
shell: cmd
# Disabled until the following are resolved:
# https://github.com/bazel-contrib/setup-bazel/issues/25
# https://github.com/bazelbuild/bazelisk/issues/572
#Windows-ARM64:
# runs-on: archonite-windows-arm64
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Setup Bazel
# uses: bazel-contrib/[email protected]
# with:
# bazelisk-cache: true
# disk-cache: ${{ github.workflow }}
# repository-cache: true
# - name: Build and Run Unit Tests
# run: bazel test --test_output=all //...
# shell: cmd

0 comments on commit 915583b

Please sign in to comment.