ci(release): add a build_only run that publishes nothing
The build and the uploads are the only parts a dry run cannot cover, and the org runner had never been asked to run mkarchiso. A build_only dispatch builds the ISO on the runner and stops there, so the chain can be validated without touching either forge.
This commit is contained in:
1 file changed
+12
-3
@@ -24,6 +24,10 @@ on:
|
|||||||
description: "Vérifier la chaîne sans builder ni publier"
|
description: "Vérifier la chaîne sans builder ni publier"
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
build_only:
|
||||||
|
description: "Builder l'ISO sans publier (valide mkarchiso sur le runner)"
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
# One release at a time: a build holds root, loop devices and ~20 min.
|
# One release at a time: a build holds root, loop devices and ~20 min.
|
||||||
concurrency:
|
concurrency:
|
||||||
@@ -60,7 +64,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Pré-vol du runner
|
- name: Pré-vol du runner
|
||||||
if: steps.check.outputs.publish == 'true'
|
if: steps.check.outputs.publish == 'true' || inputs.build_only
|
||||||
run: |
|
run: |
|
||||||
for c in bash curl jq git pacman; do
|
for c in bash curl jq git pacman; do
|
||||||
command -v "${c}" >/dev/null 2>&1 \
|
command -v "${c}" >/dev/null 2>&1 \
|
||||||
@@ -72,23 +76,28 @@ jobs:
|
|||||||
|| { echo "::error::mkarchiso exige root (job root ou sudo sans mot de passe)"; exit 1; }
|
|| { echo "::error::mkarchiso exige root (job root ou sudo sans mot de passe)"; exit 1; }
|
||||||
|
|
||||||
- name: Build officiel et publication
|
- name: Build officiel et publication
|
||||||
if: steps.check.outputs.publish == 'true'
|
if: steps.check.outputs.publish == 'true' || inputs.build_only
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.FWS_GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.FWS_GITEA_TOKEN }}
|
||||||
GITHUB_TOKEN: ${{ secrets.FWS_GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.FWS_GITHUB_TOKEN }}
|
||||||
VARIANT: ${{ inputs.variant || 'multi' }}
|
VARIANT: ${{ inputs.variant || 'multi' }}
|
||||||
DRY_RUN: ${{ inputs.dry_run }}
|
DRY_RUN: ${{ inputs.dry_run }}
|
||||||
|
BUILD_ONLY: ${{ inputs.build_only }}
|
||||||
run: |
|
run: |
|
||||||
if [ "${DRY_RUN}" = "true" ]; then
|
if [ "${DRY_RUN}" = "true" ]; then
|
||||||
# Same preflight and notes as a real run, without the build or any
|
# Same preflight and notes as a real run, without the build or any
|
||||||
# publication: how the chain is validated after a change.
|
# publication: how the chain is validated after a change.
|
||||||
./release.sh --dry-run --variant "${VARIANT}"
|
./release.sh --dry-run --variant "${VARIANT}"
|
||||||
|
elif [ "${BUILD_ONLY}" = "true" ]; then
|
||||||
|
# Proves the official build works on this runner and touches
|
||||||
|
# neither forge. The ISO itself is thrown away with the workspace.
|
||||||
|
FWS_ISO_VERSION="$(cat VERSION)" FWS_ISO_TAG="${VARIANT}" ./build-offi.sh
|
||||||
else
|
else
|
||||||
./release.sh --variant "${VARIANT}"
|
./release.sh --variant "${VARIANT}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Résumé
|
- name: Résumé
|
||||||
if: steps.check.outputs.publish == 'true'
|
if: steps.check.outputs.publish == 'true' || inputs.build_only
|
||||||
run: |
|
run: |
|
||||||
[ -n "${GITHUB_STEP_SUMMARY:-}" ] || exit 0
|
[ -n "${GITHUB_STEP_SUMMARY:-}" ] || exit 0
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user