Skip to content

Commit 1a42982

Browse files
committed
[caddyserver#5970] cross-build for AIX
1 parent 4a09cf0 commit 1a42982

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/cross-build.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
goos:
19+
- 'aix'
1920
- 'android'
2021
- 'linux'
2122
- 'solaris'
@@ -62,11 +63,12 @@ jobs:
6263
env:
6364
CGO_ENABLED: 0
6465
GOOS: ${{ matrix.goos }}
66+
GOARCH: ${{ matrix.goos == 'aix' && 'ppc64' || 'amd64' }}
6567
shell: bash
6668
continue-on-error: true
6769
working-directory: ./cmd/caddy
6870
run: |
69-
GOOS=$GOOS go build -trimpath -o caddy-"$GOOS"-amd64 2> /dev/null
71+
GOOS=$GOOS GOARCH=$GOARCH go build -trimpath -o caddy-"$GOOS"-$GOARCH 2> /dev/null
7072
if [ $? -ne 0 ]; then
7173
echo "::warning ::$GOOS Build Failed"
7274
exit 0

0 commit comments

Comments
 (0)