Skip to content

Commit

Permalink
build and test netbsd
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Nov 6, 2024
1 parent 29ed9e4 commit 16fc0e1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ jobs:
matrix:
os:
- freebsd
- netbsd
- openbsd
steps:
-
Expand Down
2 changes: 2 additions & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ target "_platforms" {
"linux/arm64",
"linux/ppc64le",
"linux/s390x",
"netbsd/amd64",
"netbsd/arm64",
"openbsd/amd64",
"openbsd/arm64",
"windows/amd64",
Expand Down
21 changes: 21 additions & 0 deletions hack/Vagrantfile.netbsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
config.vm.box = "generic/netbsd9"
config.vm.boot_timeout = 900
config.vm.synced_folder ".", "/vagrant", type: "rsync"
config.ssh.keep_alive = true

config.vm.provision "init", type: "shell", run: "once" do |sh|
sh.inline = <<~SHELL
# update CA certs
pkgin -y install mozilla-rootcerts
mozilla-rootcerts install
ftp https://go.dev/dl/go1.23.2.netbsd-amd64.tar.gz
tar -C /tmp -xzf go1.23.2.netbsd-amd64.tar.gz
ln -s /tmp/go/bin/go /usr/bin/go
SHELL
end
end

0 comments on commit 16fc0e1

Please sign in to comment.