ci: run go build jobs in parallel in cross compile job

This commit is contained in:
Marten Seemann
2023-04-23 14:13:12 +02:00
parent 1a483c0e43
commit 523036c4e6
2 changed files with 15 additions and 13 deletions

View File

@@ -19,4 +19,5 @@ jobs:
- name: Install dependencies
run: go build example/main.go
- name: Run cross compilation
run: .github/workflows/cross-compile.sh
# run in parallel on as many cores as are available on the machine
run: go tool dist list | xargs -I % -P "$(nproc)" .github/workflows/cross-compile.sh %