Skip to content

Commit dde88eb

Browse files
committed
Always setup buildkit
1 parent e829602 commit dde88eb

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,12 @@ jobs:
140140
141141
- name: Build
142142
run: |
143+
bk="$(.doi/.bin/bashbrew-buildkit-env-setup.sh)"
144+
bk="$(jq <<<"$bk" -r 'to_entries | map(.key + "=" + .value | @sh) | "export " + join(" ")')"
145+
eval "$bk"
146+
143147
cd build
144148
shell="$(jq <<<"$json" -r '.commands.build')"
145-
if grep <<<"$shell" -q ' buildx '; then
146-
bk="$(../.doi/.bin/bashbrew-buildkit-env-setup.sh)"
147-
bk="$(jq <<<"$bk" -r 'to_entries | map(.key + "=" + .value | @sh) | "export " + join(" ")')"
148-
eval "$bk"
149-
fi
150149
eval "$shell"
151150
152151
- name: Push

0 commit comments

Comments
 (0)