Skip to content

Commit 93bbe5f

Browse files
committed
test
1 parent 9ec7f93 commit 93bbe5f

1 file changed

Lines changed: 18 additions & 15 deletions

File tree

.github/workflows/matrix_builds.yaml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,11 @@ jobs:
145145
# Setup minisign key if available
146146
if [[ -n "${MINISIGN_KEY:-}" ]]; then
147147
mkdir -p "${HOME}/.minisign"
148-
echo "${{ secrets.MINISIGN_KEY }}" > "${HOME}/.minisign/minisign.key"
148+
echo "${MINISIGN_KEY}" > "${HOME}/.minisign/minisign.key"
149149
echo "SIGN_ENABLED=true" >> "$GITHUB_ENV"
150+
# Install minisign
151+
sudo apt-get install -y -qq minisign
152+
minisign -v
150153
fi
151154
152155
# GHCR login
@@ -232,8 +235,20 @@ jobs:
232235
echo "Final dependencies: $FINAL_DEPS"
233236
echo "deps=$FINAL_DEPS" >> $GITHUB_OUTPUT
234237
238+
- name: Check host compatibility
239+
run: |
240+
SBUILD="${SYSTMP}/sbuild"
241+
if [[ "${QEMU_MODE:-}" == "true" ]]; then
242+
SBUILD="${SYSTMP}/sbuild-riscv64"
243+
fi
244+
245+
if ! "$SBUILD" info "${{ inputs.sbuild-url }}" --check-host "${HOST_TRIPLET}"; then
246+
echo "::warning::Recipe not supported on ${HOST_TRIPLET}"
247+
echo "SKIP_BUILD=true" >> "$GITHUB_ENV"
248+
fi
249+
235250
- name: Create metadata release (soar-nest)
236-
if: inputs.metadata-release == true
251+
if: inputs.metadata-release == true && env.SKIP_BUILD != 'true'
237252
env:
238253
GH_TOKEN: "${{ github.token }}"
239254
run: |
@@ -255,7 +270,7 @@ jobs:
255270
continue-on-error: true
256271

257272
- name: Install build dependencies
258-
if: steps.detect-deps.outputs.deps != ''
273+
if: steps.detect-deps.outputs.deps != '' && env.SKIP_BUILD != 'true'
259274
env:
260275
GITHUB_TOKEN: "${{ github.token }}"
261276
run: |
@@ -370,18 +385,6 @@ jobs:
370385
echo "::endgroup::"
371386
done
372387
373-
- name: Check host compatibility
374-
run: |
375-
SBUILD="${SYSTMP}/sbuild"
376-
if [[ "${QEMU_MODE:-}" == "true" ]]; then
377-
SBUILD="${SYSTMP}/sbuild-riscv64"
378-
fi
379-
380-
if ! "$SBUILD" info "${{ inputs.sbuild-url }}" --check-host "${HOST_TRIPLET}"; then
381-
echo "::warning::Recipe not supported on ${HOST_TRIPLET}"
382-
echo "SKIP_BUILD=true" >> "$GITHUB_ENV"
383-
fi
384-
385388
- name: Disable AppArmor restrictions
386389
if: env.SKIP_BUILD != 'true'
387390
run: |

0 commit comments

Comments
 (0)