Skip to content

Commit 56874c3

Browse files
authored
Merge pull request #3512 from AkihiroSuda/cross
CI: cross-compile GOOS=netbsd,dragonfly
2 parents d5601c6 + a8f96c6 commit 56874c3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,3 +508,18 @@ jobs:
508508
template: templates/default.yaml
509509
- name: Smoke test
510510
run: gomodjail run --go-mod=./go.mod -- limactl start --tty=false
511+
512+
cross:
513+
name: "Cross-compile (NetBSD, DragonFlyBSD)"
514+
runs-on: ubuntu-24.04
515+
timeout-minutes: 30
516+
steps:
517+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
518+
with:
519+
# To avoid "failed to load YAML file \"templates/experimental/riscv64.yaml\": can't parse builtin Lima version \"3f3a6f6\": 3f3a6f6 is not in dotted-tri format"
520+
fetch-depth: 0
521+
- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
522+
with:
523+
go-version: 1.24.x
524+
- run: GOOS=netbsd go build ./...
525+
- run: GOOS=dragonfly go build ./...

0 commit comments

Comments
 (0)