File tree Expand file tree Collapse file tree 1 file changed +17
-46
lines changed
Expand file tree Collapse file tree 1 file changed +17
-46
lines changed Original file line number Diff line number Diff line change @@ -30,59 +30,30 @@ concurrency:
3030permissions :
3131 contents : read
3232jobs :
33- docker-targets :
34- name : Docker targets
35- runs-on : ubuntu-latest
36- outputs :
37- targets : ${{ steps.detect-targets.outputs.targets }}
38- steps :
39- - name : Detect targets
40- id : detect-targets
41- run : |
42- echo "targets<<JSON" >> "$GITHUB_OUTPUT"
43- echo "[" >> "$GITHUB_OUTPUT"
44- cat <<JSON >> "$GITHUB_OUTPUT"
45- {
46- "arch-label": "AMD64",
47- "arch": "amd64",
48- "go": "1.22",
49- "runs-on": "ubuntu-latest"
50- },
51- {
52- "arch-label": "AMD64",
53- "arch": "amd64",
54- "go": "1.23",
55- "runs-on": "ubuntu-latest"
56- }
57- JSON
58- if [ "$GITHUB_REPOSITORY_OWNER" = "apache" ]; then
59- echo "," >> "$GITHUB_OUTPUT"
60- cat <<JSON >> "$GITHUB_OUTPUT"
61- {
62- "arch-label": "ARM64",
63- "arch": "arm64v8",
64- "go": "1.22",
65- "runs-on": ["self-hosted", "arm", "linux"]
66- },
67- {
68- "arch-label": "ARM64",
69- "arch": "arm64v8",
70- "go": "1.23",
71- "runs-on": ["self-hosted", "arm", "linux"]
72- }
73- JSON
74- fi
75- echo "]" >> "$GITHUB_OUTPUT"
76- echo "JSON" >> "$GITHUB_OUTPUT"
7733 docker :
7834 name : ${{ matrix.arch-label }} Debian 12 Go ${{ matrix.go }}
79- needs : docker-targets
8035 runs-on : ${{ matrix.runs-on }}
8136 timeout-minutes : 30
8237 strategy :
8338 fail-fast : false
8439 matrix :
85- include : ${{ fromJson(needs.docker-targets.outputs.targets) }}
40+ include :
41+ - arch-label : AMD64
42+ arch : amd64
43+ go : 1.22
44+ runs-on : ubuntu-latest
45+ - arch-label : AMD64
46+ arch : amd64
47+ go : 1.23
48+ runs-on : ubuntu-latest
49+ - arch-label : ARM64
50+ arch : arm64v8
51+ go : 1.22
52+ runs-on : ubuntu-24.04-arm
53+ - arch-label : ARM64
54+ arch : arm64v8
55+ go : 1.23
56+ runs-on : ubuntu-24.04-arm
8657 env :
8758 ARCH : ${{ matrix.arch }}
8859 GO : ${{ matrix.go }}
You can’t perform that action at this time.
0 commit comments