Skip to content

Commit c47fcfb

Browse files
committed
github/workflows/main: add cross compilation targets for arm64
GitHub Actions doesn't offer hosted nodes with arm64 yet, so we can't run tests, but let's at least try to compile it (similar to freebsd).
1 parent db03253 commit c47fcfb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ jobs:
1818
- freebsd
1919
- linux
2020
- windows
21+
goarch:
22+
- amd64
23+
- arm64
2124

22-
name: cross-compilation (GOOS=${{ matrix.goos }})
25+
name: cross-compilation (GOOS=${{ matrix.goos }}, GOARCH=${{ matrix.goarch }})
2326
runs-on: ubuntu-latest
2427
steps:
2528
- uses: actions/[email protected]
@@ -31,6 +34,7 @@ jobs:
3134
- run: go build
3235
env:
3336
GOOS: ${{ matrix.goos }}
37+
GOARCH: ${{ matrix.goarch }}
3438

3539
test:
3640
strategy:

0 commit comments

Comments
 (0)