From: Soeren Apel Date: Tue, 13 Aug 2024 18:40:30 +0000 (+0200) Subject: build.yml: Try splitting the release job into PV/sigrok-cli X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6c79a5dc138ea6bb9c0eb875ac0bc9e3f04a8fec;p=sigrok-build.git build.yml: Try splitting the release job into PV/sigrok-cli --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f273eee..62c378d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -508,21 +508,18 @@ jobs: name: artifact-sigrok-cli-macos path: sigrok-build/ci/macos/sigrok-cli*.dmg - continuous_release: - name: Create continuous release and add artifacts to it - + continous_release_pulseview: + name: Create continuous PulseView release and add artifacts to it runs-on: ubuntu-latest if: | - (github.event_name == 'push' && github.ref == 'refs/heads/master') || - (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master') + (endsWith(${{ github.repository }}, 'pulseview') && + ((github.event_name == 'push' && github.ref == 'refs/heads/master') || + (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master')) needs: - build_pulseview_mxe - - build_sigrok-cli_mxe - build_pulseview_appimage - - build_sigrok-cli_appimage - build_pulseview_macos - - build_sigrok-cli_macos steps: - name: Download AppImage artifacts @@ -536,10 +533,6 @@ jobs: uses: softprops/action-gh-release@v1 with: files: | - artifact-sigrok-cli-i686-mxe/sigrok-cli-* - artifact-sigrok-cli-x86_64-mxe/sigrok-cli-* - artifact-sigrok-cli-x86_64-appimage/sigrok-cli-* - artifact-sigrok-cli-macos/sigrok-cli-* artifact-pulseview-i686-debug-mxe/pulseview-* artifact-pulseview-i686-release-mxe/pulseview-* artifact-pulseview-x86_64-debug-mxe/pulseview-* @@ -550,3 +543,51 @@ jobs: generate_release_notes: false draft: false fail_on_unmatched_files: true + + continuous_release_sigrok-cli: + name: Create continuous sigrok-cli release and add artifacts to it + + runs-on: ubuntu-latest + + if: | + (endsWith(${{ github.repository }}, 'sigrok-cli') && + ((github.event_name == 'push' && github.ref == 'refs/heads/master') || + (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master')) + needs: + - build_sigrok-cli_mxe + - build_sigrok-cli_appimage + - build_sigrok-cli_macos + + steps: + - name: Download AppImage artifacts + uses: actions/download-artifact@v3 + - name: Download all other artifacts + uses: actions/download-artifact@v4 + - name: Inspect directory after downloading artifacts + run: ls -alFR + - name: Create release + id: create_release + uses: softprops/action-gh-release@v1 + with: + files: | + artifact-sigrok-cli-i686-mxe/sigrok-cli-* + artifact-sigrok-cli-x86_64-mxe/sigrok-cli-* + artifact-sigrok-cli-x86_64-appimage/sigrok-cli-* + artifact-sigrok-cli-macos/sigrok-cli-* + tag_name: continuous + generate_release_notes: false + draft: false + fail_on_unmatched_files: true + + continuous_release_all: + name: Create continuous release and add artifacts to it + + runs-on: ubuntu-latest + + if: | + (endsWith(${{ github.repository }}, 'sigrok-build') && + (github.event_name == 'push' && github.ref == 'refs/heads/master') || + (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master') + needs: + - continuous_release_pulseview + - continuous_release_sigrok-cli