From 045da1ba041de62aa9acb533aec248a6ff003ba1 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 13 Feb 2025 10:49:51 +0000 Subject: [PATCH] Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- .github/workflows/build_and_test.yaml | 56 ++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yaml b/.github/workflows/build_and_test.yaml index b56f5409..2ff2eef0 100644 --- a/.github/workflows/build_and_test.yaml +++ b/.github/workflows/build_and_test.yaml @@ -22,16 +22,70 @@ jobs: uses: ./.github/workflows/build_windows.yaml strategy: matrix: - arch: [x64] + arch: [x64, ia32] with: arch: ${{ matrix.arch }} + linux: + needs: fetch + name: "Linux (${{ matrix.arch }}) (sqlcipher: ${{ matrix.sqlcipher }})" + uses: ./.github/workflows/build_linux.yaml + strategy: + matrix: + sqlcipher: [system, static] + arch: [amd64, arm64] + with: + config: ${{ github.event.pull_request.base.ref == 'develop' && 'element.io/nightly' || 'element.io/release' }} + sqlcipher: ${{ matrix.sqlcipher }} + arch: ${{ matrix.arch }} + + macos: + needs: fetch + name: macOS + uses: ./.github/workflows/build_macos.yaml + test: needs: + - macos + - linux - windows strategy: matrix: include: + - name: macOS Universal + os: macos-14 + artifact: macos + executable: "/Users/runner/Applications/Element.app/Contents/MacOS/Element" + # We need to mount the DMG and copy the app to the Applications folder as a mounted DMG is + # read-only and thus would not allow us to override the fuses as is required for Playwright. + prepare_cmd: | + hdiutil attach ./dist/*.dmg -mountpoint /Volumes/Element && + rsync -a /Volumes/Element/Element.app ~/Applications/ && + hdiutil detach /Volumes/Element + - name: "Linux (amd64) (sqlcipher: system)" + os: ubuntu-22.04 + artifact: linux-amd64-sqlcipher-system + executable: "/opt/Element/element-desktop" + prepare_cmd: "sudo apt-get -qq update && sudo apt install ./dist/*.deb" + - name: "Linux (amd64) (sqlcipher: static)" + os: ubuntu-22.04 + artifact: linux-amd64-sqlcipher-static + executable: "/opt/Element/element-desktop" + prepare_cmd: "sudo apt-get -qq update && sudo apt install ./dist/*.deb" + - name: "Linux (arm64) (sqlcipher: system)" + os: ubuntu-22.04-arm + artifact: linux-arm64-sqlcipher-system + executable: "/opt/Element/element-desktop" + prepare_cmd: "sudo apt-get -qq update && sudo apt install -y ./dist/*.deb" + - name: "Linux (arm64) (sqlcipher: static)" + os: ubuntu-22.04-arm + artifact: linux-arm64-sqlcipher-static + executable: "/opt/Element/element-desktop" + prepare_cmd: "sudo apt-get -qq update && sudo apt install -y ./dist/*.deb" + - name: Windows (x86) Squirrel + os: windows-2022 + artifact: win-ia32 + executable: "./dist/win-ia32-unpacked/Element.exe" - name: Windows (x64) Squirrel os: windows-2022 artifact: win-x64