From c11f4286aefe903dcfcef8b33b46b1af3d9ddedf Mon Sep 17 00:00:00 2001 From: mrabine Date: Sun, 20 Sep 2026 23:23:08 +0200 Subject: [PATCH 1/2] Skip testimage on release --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b528e33..d29af9d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -94,6 +94,7 @@ jobs: MACHINE=${{ matrix.machine }} bitbake --quiet chronos-image - name: Run Test Image + if: ${{ !inputs.release }} run: | source ./meta-chronos-distro/chronos-init-build-env MACHINE=${{ matrix.machine }} bitbake chronos-image:do_testimage From bd598ba8c96c35a0396e9ba3efc95f3ffbbbfa51 Mon Sep 17 00:00:00 2001 From: mrabine Date: Sun, 20 Sep 2026 23:26:30 +0200 Subject: [PATCH 2/2] use same syntaxe --- .github/workflows/build.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d29af9d..1c7aad0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -100,13 +100,13 @@ jobs: MACHINE=${{ matrix.machine }} bitbake chronos-image:do_testimage - name: Build SDK - if: inputs.sdk + if: ${{ inputs.sdk }} run: | source ./meta-chronos-distro/chronos-init-build-env MACHINE=${{ matrix.machine }} bitbake --quiet chronos-image:do_populate_sdk - name: Setup Sync - if: inputs.cache + if: ${{ inputs.cache }} env: KNOWN_HOST: ${{ secrets.YOCTOCACHE_KNOWN_HOST }} DEPLOY_KEY: ${{ secrets.YOCTOCACHE_DEPLOY_KEY }} @@ -118,7 +118,7 @@ jobs: chmod 600 "$HOME/.ssh/known_hosts" "$HOME/.ssh/id_deploy" - name: Sync Sources - if: inputs.cache + if: ${{ inputs.cache }} env: DEST: ${{ secrets.YOCTOCACHE_DEST }} PORT: ${{ secrets.YOCTOCACHE_PORT }} @@ -135,7 +135,7 @@ jobs: ./ "$DEST/source-mirror/" - name: Sync Cache - if: inputs.cache + if: ${{ inputs.cache }} env: DEST: ${{ secrets.YOCTOCACHE_DEST }} PORT: ${{ secrets.YOCTOCACHE_PORT }} @@ -148,7 +148,7 @@ jobs: ./ "$DEST/sstate-mirror/${{ matrix.machine }}/" - name: Collect Artifacts - if: inputs.release + if: ${{ inputs.release }} run: | mkdir -p artifacts/${{ matrix.machine }} cp build/tmp/deploy/images/${{ matrix.machine }}/*.rootfs.ext4.gz artifacts/${{ matrix.machine }}/ @@ -162,7 +162,7 @@ jobs: fi - name: Upload Artifacts to GitHub - if: inputs.release + if: ${{ inputs.release }} uses: actions/upload-artifact@v7.0.1 with: name: ${{ matrix.machine }}-artifacts @@ -170,7 +170,7 @@ jobs: if-no-files-found: error - name: Cleanup Workspace - if: always() + if: ${{ always() }} run: | rm -rf -- "$GITHUB_WORKSPACE"/* rm -rf -- "$GITHUB_WORKSPACE"/.[!.]* "$GITHUB_WORKSPACE"/..?*