From b04c36f9ff0f0d3280575e21fbcbc80e30131b86 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Wed, 11 Dec 2024 15:42:17 +0100 Subject: [PATCH] GHA: test build-only/release mode --- .github/workflows/test-build.yml | 21 ++++++++-- test/gha-build-iso.sh | 72 ++++++++++++++++++++++++++++---- 2 files changed, 81 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 43f5c6be..9558c0b9 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -50,15 +50,30 @@ jobs: steps: - uses: actions/checkout@v4 - - run: ./test/gha-build-iso.sh + - run: ./test/gha-build-iso.sh initial name: "Build ISO on ${{matrix.host_release}}" env: HOST_RELEASE: ${{matrix.host_release}} - name: Archive built ISO + if: always() uses: actions/upload-artifact@v4 with: - name: grml-live-build-result-${{matrix.host_release}} + name: grml-live-build-result-initial-${{matrix.host_release}} if-no-files-found: error path: | - results/* + results-initial/* + + - run: ./test/gha-build-iso.sh build-only-twice + name: "Repack ISO twice on ${{matrix.host_release}}" + env: + HOST_RELEASE: ${{matrix.host_release}} + + - name: Archive repacked ISO + if: always() + uses: actions/upload-artifact@v4 + with: + name: grml-live-build-result-repack-${{matrix.host_release}} + if-no-files-found: error + path: | + results-build-only-second/* diff --git a/test/gha-build-iso.sh b/test/gha-build-iso.sh index 37eac6ae..7586d121 100755 --- a/test/gha-build-iso.sh +++ b/test/gha-build-iso.sh @@ -6,10 +6,7 @@ set -euxo pipefail -cat >build-gha-ci-test-config <build-gha-ci-test-config-initial <build-gha-ci-test-config-build-only-first <build-gha-ci-test-config-build-only-second <