mirror of
https://github.com/etcd-io/bbolt.git
synced 2025-05-31 11:42:30 +00:00
github/workflows: add ARM64 tests
Restore ARM64 test workflows. Remove the conditional to run only ARM tests in the upstream repository, as GitHub ARM runners are now publicly available. Signed-off-by: Ivan Valdes <ivan@vald.es>
This commit is contained in:
parent
67b9853f12
commit
36a2a0eda4
2
.github/workflows/tests-template.yml
vendored
2
.github/workflows/tests-template.yml
vendored
@ -15,8 +15,6 @@ permissions: read-all
|
||||
|
||||
jobs:
|
||||
test-linux:
|
||||
# this is to prevent arm64 jobs from running at forked projects
|
||||
if: ${{ github.repository == 'etcd-io/bbolt' || inputs.runs-on == 'ubuntu-latest' }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
26
.github/workflows/tests_arm64.yaml
vendored
Normal file
26
.github/workflows/tests_arm64.yaml
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
name: Tests ARM64
|
||||
permissions: read-all
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
test-linux-arm64:
|
||||
uses: ./.github/workflows/tests-template.yml
|
||||
test-linux-arm64-race:
|
||||
uses: ./.github/workflows/tests-template.yml
|
||||
with:
|
||||
runs-on: ubuntu-24.04-arm
|
||||
targets: "['linux-unit-test-4-cpu-race']"
|
||||
|
||||
coverage:
|
||||
needs:
|
||||
- test-linux-arm64
|
||||
- test-linux-arm64-race
|
||||
runs-on: ubuntu-24.04-arm
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
- id: goversion
|
||||
run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT"
|
||||
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
|
||||
with:
|
||||
go-version: ${{ steps.goversion.outputs.goversion }}
|
||||
- run: make coverage
|
Loading…
x
Reference in New Issue
Block a user