Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable ARM64 Workflow #128

Merged
merged 12 commits into from
Jan 20, 2024
26 changes: 26 additions & 0 deletions .github/workflows/test_amd64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test AMD64
permissions: read-all
on: [push, pull_request]
jobs:
test-linux-amd64:
uses: ./.github/workflows/test_template.yaml
with:
targets: "['linux-amd64-unit-4-cpu-race']"
test-linux-386:
uses: ./.github/workflows/test_template.yaml
with:
targets: "['linux-386-unit-1-cpu']"

coverage:
needs:
- test-linux-amd64
- test-linux-386
runs-on: ubuntu-latest-8-cores
steps:
- uses: actions/checkout@v4
- id: goversion
run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT"
- uses: actions/setup-go@v5
with:
go-version: ${{ steps.goversion.outputs.goversion }}
- run: make test
22 changes: 22 additions & 0 deletions .github/workflows/test_arm64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Test ARM64
permissions: read-all
on: [push, pull_request]
jobs:
test-linux-arm64-cpu-race:
uses: ./.github/workflows/test_template.yaml
with:
runs-on: actuated-arm64-8cpu-8gb
targets: "['linux-arm64-unit-test-4-cpu-race']"

coverage:
needs:
- test-linux-arm64-cpu-race
runs-on: actuated-arm64-8cpu-8gb
steps:
- uses: actions/checkout@v4
- id: goversion
run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT"
- uses: actions/setup-go@v5
with:
go-version: ${{ steps.goversion.outputs.goversion }}
- run: make test
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
name: Test
on: [push, pull_request]
name: Workflow Test Template
on:
workflow_call:
inputs:
runs-on:
required: false
type: string
default: ubuntu-latest
targets:
required: false
type: string
default: "['linux-unit-test-1-cpu', 'linux-unit-test-4-cpu']"
permissions: read-all
tcchawla marked this conversation as resolved.
Show resolved Hide resolved

jobs:
run:
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs-on }}
strategy:
fail-fast: false
matrix:
target:
- linux-amd64-unit-4-cpu-race
- linux-386-unit-1-cpu
target: ${{ fromJSON(input.targets) }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21.6"
- env:
- env:
TARGET: ${{ matrix.target }}
run: |
case "${TARGET}" in
Expand All @@ -24,6 +34,9 @@ jobs:
linux-386-unit-1-cpu)
GOARCH=386 PASSES='unit' RACE='false' CPU='1' ./scripts/test.sh -p=4
;;
linux-arm64-unit-test-4-cpu-race)
GOARCH=arm64 PASSES='unit' RACE='true' CPU='4' ./scripts/test.sh -p=2
tcchawla marked this conversation as resolved.
Show resolved Hide resolved
;;
*)
echo "Failed to find target"
exit 1
Expand Down
Loading