Skip to content

Commit

Permalink
added arm64 workflow
Browse files Browse the repository at this point in the history
Signed-off-by: tcchawla <[email protected]>
  • Loading branch information
tcchawla committed Jan 18, 2024
1 parent 245b1e1 commit 031c6bd
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test_arm64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test ARM64
on: [push, pull_request]
jobs:
run:
runs-on: actuated-arm64-8cpu-32gb
strategy:
fail-fast: false
matrix:
target:
- linux-arm64-unit-test-1-cpu
- linux-arm64-unit-test-2-cpu
- linux-arm64-unit-test-4-cpu
- linux-arm64-unit-test-4-cpu-race
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21.5"
- env:
TARGET: ${{ matrix.target }}
run: |
case "${TARGET}" in
linux-arm64-unit-test-1-cpu)
GOARCH=arm64 PASSES='unit' RACE='false' CPU='1' ./scripts/test.sh -p=4
;;
linux-arm64-unit-test-2-cpu)
GOARCH=arm64 PASSES='unit' RACE='false' CPU='2' ./scripts/test.sh -p=2
;;
linux-arm64-unit-test-4-cpu)
GOARCH=arm64 PASSES='unit' RACE='false' CPU='4' ./scripts/test.sh -p=2
;;
linux-arm64-unit-test-4-cpu-race)
GOARCH=arm64 PASSES='unit' RACE='true' CPU='4' ./scripts/test.sh -p=2
;;
*)
echo "Failed to find target"
exit 1
;;
esac

0 comments on commit 031c6bd

Please sign in to comment.