Skip to content

Commit

Permalink
(GH:apache#267) (ci)(chore) Update to ubuntu-24.04-arm
Browse files Browse the repository at this point in the history
Signed-off-by: Saurabh Kumar Singh <[email protected]>
  • Loading branch information
singh1203 committed Feb 5, 2025
1 parent b709be7 commit 5003605
Showing 1 changed file with 17 additions and 46 deletions.
63 changes: 17 additions & 46 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,59 +30,30 @@ concurrency:
permissions:
contents: read
jobs:
docker-targets:
name: Docker targets
runs-on: ubuntu-latest
outputs:
targets: ${{ steps.detect-targets.outputs.targets }}
steps:
- name: Detect targets
id: detect-targets
run: |
echo "targets<<JSON" >> "$GITHUB_OUTPUT"
echo "[" >> "$GITHUB_OUTPUT"
cat <<JSON >> "$GITHUB_OUTPUT"
{
"arch-label": "AMD64",
"arch": "amd64",
"go": "1.22",
"runs-on": "ubuntu-latest"
},
{
"arch-label": "AMD64",
"arch": "amd64",
"go": "1.23",
"runs-on": "ubuntu-latest"
}
JSON
if [ "$GITHUB_REPOSITORY_OWNER" = "apache" ]; then
echo "," >> "$GITHUB_OUTPUT"
cat <<JSON >> "$GITHUB_OUTPUT"
{
"arch-label": "ARM64",
"arch": "arm64v8",
"go": "1.22",
"runs-on": ["self-hosted", "arm", "linux"]
},
{
"arch-label": "ARM64",
"arch": "arm64v8",
"go": "1.23",
"runs-on": ["self-hosted", "arm", "linux"]
}
JSON
fi
echo "]" >> "$GITHUB_OUTPUT"
echo "JSON" >> "$GITHUB_OUTPUT"
docker:
name: ${{ matrix.arch-label }} Debian 12 Go ${{ matrix.go }}
needs: docker-targets
runs-on: ${{ matrix.runs-on }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include: ${{ fromJson(needs.docker-targets.outputs.targets) }}
include:
- arch: amd64
go: 1.22
runs-on: ubuntu-latest
arch-label: AMD64
- arch: amd64
go: 1.23
runs-on: ubuntu-latest
arch-label: AMD64
- arch: arm64v8
go: 1.22
runs-on: ubuntu-24.04-arm
arch-label: ARM64
- arch: arm64v8
go: 1.23
runs-on: ubuntu-24.04-arm
arch-label: ARM64
env:
ARCH: ${{ matrix.arch }}
GO: ${{ matrix.go }}
Expand Down

0 comments on commit 5003605

Please sign in to comment.