mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 01:53:42 +08:00 
			
		
		
		
	
							
								
								
									
										1
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							@@ -258,6 +258,7 @@ jobs:
 | 
			
		||||
      matrix:
 | 
			
		||||
        os:
 | 
			
		||||
          - freebsd
 | 
			
		||||
          - netbsd
 | 
			
		||||
          - openbsd
 | 
			
		||||
    steps:
 | 
			
		||||
      -
 | 
			
		||||
 
 | 
			
		||||
@@ -105,6 +105,7 @@ COPY --link --from=buildx-build /usr/bin/docker-buildx /buildx
 | 
			
		||||
FROM binaries-unix AS binaries-darwin
 | 
			
		||||
FROM binaries-unix AS binaries-freebsd
 | 
			
		||||
FROM binaries-unix AS binaries-linux
 | 
			
		||||
FROM binaries-unix AS binaries-netbsd
 | 
			
		||||
FROM binaries-unix AS binaries-openbsd
 | 
			
		||||
 | 
			
		||||
FROM scratch AS binaries-windows
 | 
			
		||||
 
 | 
			
		||||
@@ -48,6 +48,8 @@ target "lint" {
 | 
			
		||||
    "linux/s390x",
 | 
			
		||||
    "linux/ppc64le",
 | 
			
		||||
    "linux/riscv64",
 | 
			
		||||
    "netbsd/amd64",
 | 
			
		||||
    "netbsd/arm64",
 | 
			
		||||
    "openbsd/amd64",
 | 
			
		||||
    "openbsd/arm64",
 | 
			
		||||
    "windows/amd64",
 | 
			
		||||
@@ -167,6 +169,8 @@ target "binaries-cross" {
 | 
			
		||||
    "linux/ppc64le",
 | 
			
		||||
    "linux/riscv64",
 | 
			
		||||
    "linux/s390x",
 | 
			
		||||
    "netbsd/amd64",
 | 
			
		||||
    "netbsd/arm64",
 | 
			
		||||
    "openbsd/amd64",
 | 
			
		||||
    "openbsd/arm64",
 | 
			
		||||
    "windows/amd64",
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										32
									
								
								hack/Vagrantfile.netbsd
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								hack/Vagrantfile.netbsd
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,32 @@
 | 
			
		||||
# -*- 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
 | 
			
		||||
      set -x
 | 
			
		||||
      mkdir -p /var/tmp
 | 
			
		||||
      chmod 1777 /var/tmp
 | 
			
		||||
 | 
			
		||||
      pkgin -y install git mozilla-rootcerts
 | 
			
		||||
      mozilla-rootcerts install
 | 
			
		||||
 | 
			
		||||
      ftp https://go.dev/dl/go#{ENV['GO_VERSION']}.netbsd-amd64.tar.gz
 | 
			
		||||
      tar -C /var/tmp -xzf go#{ENV['GO_VERSION']}.netbsd-amd64.tar.gz
 | 
			
		||||
 | 
			
		||||
      cat << 'EOF' > /usr/bin/go-wrapper
 | 
			
		||||
      #!/bin/sh
 | 
			
		||||
      export TMPDIR="/var/tmp"
 | 
			
		||||
      exec /var/tmp/go/bin/go "$@"
 | 
			
		||||
      EOF
 | 
			
		||||
      chmod +x /usr/bin/go-wrapper
 | 
			
		||||
 | 
			
		||||
      ln -s /usr/bin/go-wrapper /usr/bin/go
 | 
			
		||||
    SHELL
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
		Reference in New Issue
	
	Block a user