From 83f805efb39fb50a3483c7dad91be068f707009a Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 13 Feb 2025 10:48:13 +0000 Subject: [PATCH] Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- .github/workflows/build_and_test.yaml | 4 ++-- .github/workflows/build_linux.yaml | 7 +++++++ .github/workflows/build_macos.yaml | 7 +++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_and_test.yaml b/.github/workflows/build_and_test.yaml index 4c28fdab..b56f5409 100644 --- a/.github/workflows/build_and_test.yaml +++ b/.github/workflows/build_and_test.yaml @@ -35,12 +35,12 @@ jobs: - name: Windows (x64) Squirrel os: windows-2022 artifact: win-x64 - executable: "%LOCALAPPDATA%\element-desktop*\Element.exe" + executable: "%LOCALAPPDATA%/element-desktop*/Element.exe" prepare_cmd: "./dist/squirrel-windows*/Element Setup*.exe" - name: Windows (x64) MSI os: windows-2022 artifact: win-x64 - executable: "C:\Program Files*\Element\Element*.exe" + executable: "C:/Program Files*/Element/Element*.exe" prepare_cmd: "msiexec ./dist/Element*.msi" name: Test ${{ matrix.name }} runs-on: ${{ matrix.os }} diff --git a/.github/workflows/build_linux.yaml b/.github/workflows/build_linux.yaml index 51e99d88..249e56c6 100644 --- a/.github/workflows/build_linux.yaml +++ b/.github/workflows/build_linux.yaml @@ -173,6 +173,13 @@ jobs: env: ARCH: ${{ steps.config.outputs.arch }} + - name: Assert all expected files are present + run: | + test -f ./dist/element-desktop*$ARCH.deb + test -f ./dist/element-desktop*.tar.gz + env: + ARCH: ${{ inputs.arch }} + # We exclude *-unpacked as it loses permissions and the tarball contains it with correct permissions - name: Upload Artifacts uses: actions/upload-artifact@v4 diff --git a/.github/workflows/build_macos.yaml b/.github/workflows/build_macos.yaml index b1b423eb..f4a88577 100644 --- a/.github/workflows/build_macos.yaml +++ b/.github/workflows/build_macos.yaml @@ -134,6 +134,13 @@ jobs: env: VERSION: ${{ inputs.version }} + - name: Assert all expected files are present + run: | + test -f ./dist/Element*.dmg + test -f ./dist/Element*-mac.zip + test -f ./dist/releases.json + test -f ./dist/releases-legacy.json + # We exclude mac-universal as the unpacked app takes forever to upload and zip and dmg already contains it - name: Upload Artifacts uses: actions/upload-artifact@v4