23
23
TESTFLAGS : " -v --parallel=6 --timeout=30m"
24
24
GOTESTSUM_VERSION : " v1.9.0" # same as one in Dockerfile
25
25
GOTESTSUM_FORMAT : " standard-verbose"
26
+ DESTDIR : " ./bin"
26
27
27
28
jobs :
28
29
test :
89
90
if : failure()
90
91
uses : crazy-max/ghaction-dump-context@v2
91
92
93
+ build-freebsd-amd64 :
94
+ runs-on : ubuntu-22.04
95
+ steps :
96
+ -
97
+ name : Checkout
98
+ uses : actions/checkout@v4
99
+ -
100
+ name : Set up Docker Buildx
101
+ uses : docker/setup-buildx-action@v2
102
+ -
103
+ name : Build
104
+ uses : docker/bake-action@v3
105
+ with :
106
+ targets : binaries
107
+ set : |
108
+ *.platform=freebsd/amd64
109
+ -
110
+ name : Upload artifacts
111
+ uses : actions/upload-artifact@v3
112
+ with :
113
+ name : buildkit-freebsd-amd64
114
+ path : ${{ env.DESTDIR }}/*
115
+ if-no-files-found : error
116
+ retention-days : 1
117
+
92
118
test-freebsd-amd64 :
93
119
runs-on : macos-12
120
+ needs :
121
+ - build-freebsd-amd64
94
122
env :
95
123
VAGRANT_VAGRANTFILE : hack/Vagrantfile.freebsd13
96
124
GOOS : freebsd
@@ -99,18 +127,11 @@ jobs:
99
127
name : Checkout
100
128
uses : actions/checkout@v4
101
129
-
102
- name : Set up Go
103
- uses : actions/setup-go@v4
130
+ name : Download artifacts
131
+ uses : actions/download-artifact@v3
104
132
with :
105
- go-version : " ${{ env.GO_VERSION }}"
106
-
107
- - name : Build buildkitd binary
108
- run : |
109
- go build ./cmd/buildkitd
110
-
111
- - name : Build buildctl binary
112
- run : |
113
- go build ./cmd/buildctl
133
+ name : buildkit-freebsd-amd64
134
+ path : ${{ env.DESTDIR }}
114
135
-
115
136
name : Cache Vagrant boxes
116
137
uses : actions/cache@v3
0 commit comments