mirror of
https://github.com/element-hq/element-desktop
synced 2025-04-21 09:03:56 +02:00
Merge branch 'develop' of https://github.com/vector-im/element-desktop into t3chguy/safeStorage
# Conflicts: # .github/workflows/build_and_test.yaml # .github/workflows/build_linux.yaml # .github/workflows/build_macos.yaml # .github/workflows/build_test.yaml # .github/workflows/build_windows.yaml
This commit is contained in:
commit
c023ec6f69
2
.github/workflows/build_and_test.yaml
vendored
2
.github/workflows/build_and_test.yaml
vendored
@ -43,7 +43,7 @@ jobs:
|
|||||||
name: macOS
|
name: macOS
|
||||||
uses: ./.github/workflows/build_macos.yaml
|
uses: ./.github/workflows/build_macos.yaml
|
||||||
|
|
||||||
complete:
|
tests-done:
|
||||||
needs: [windows, linux, macos]
|
needs: [windows, linux, macos]
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
|
2
.github/workflows/build_linux.yaml
vendored
2
.github/workflows/build_linux.yaml
vendored
@ -190,7 +190,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
artifact: linux-${{ inputs.arch }}-sqlcipher-${{ inputs.sqlcipher }}
|
artifact: linux-${{ inputs.arch }}-sqlcipher-${{ inputs.sqlcipher }}
|
||||||
runs-on: ${{ inputs.arch == 'arm64' && 'ubuntu-22.04-arm' || 'ubuntu-22.04' }}
|
runs-on: ${{ inputs.arch == 'arm64' && 'ubuntu-22.04-arm' || 'ubuntu-22.04' }}
|
||||||
executable: /opt/Element/element-desktop
|
executable: /opt/Element/element-desktop*
|
||||||
prepare_cmd: |
|
prepare_cmd: |
|
||||||
sudo apt-get -qq update
|
sudo apt-get -qq update
|
||||||
sudo apt install ./dist/*.deb
|
sudo apt install ./dist/*.deb
|
||||||
|
4
.github/workflows/build_macos.yaml
vendored
4
.github/workflows/build_macos.yaml
vendored
@ -152,10 +152,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
artifact: macos
|
artifact: macos
|
||||||
runs-on: macos-14
|
runs-on: macos-14
|
||||||
executable: /Users/runner/Applications/Element.app/Contents/MacOS/Element
|
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
|
# 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.
|
# read-only and thus would not allow us to override the fuses as is required for Playwright.
|
||||||
prepare_cmd: |
|
prepare_cmd: |
|
||||||
hdiutil attach ./dist/*.dmg -mountpoint /Volumes/Element &&
|
hdiutil attach ./dist/*.dmg -mountpoint /Volumes/Element &&
|
||||||
rsync -a /Volumes/Element/Element.app ~/Applications/ &&
|
rsync -a /Volumes/Element/Element*.app ~/Applications/ &&
|
||||||
hdiutil detach /Volumes/Element
|
hdiutil detach /Volumes/Element
|
||||||
|
16
.github/workflows/build_test.yaml
vendored
16
.github/workflows/build_test.yaml
vendored
@ -42,22 +42,32 @@ jobs:
|
|||||||
run: ${{ inputs.prepare_cmd }}
|
run: ${{ inputs.prepare_cmd }}
|
||||||
if: inputs.prepare_cmd
|
if: inputs.prepare_cmd
|
||||||
|
|
||||||
|
- name: Expand executable path
|
||||||
|
id: executable
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
EXECUTABLE: ${{ inputs.executable }}
|
||||||
|
run: |
|
||||||
|
FILES=($EXECUTABLE)
|
||||||
|
echo "path=${FILES[0]}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# We previously disabled the `EnableNodeCliInspectArguments` fuse, but Playwright requires
|
# We previously disabled the `EnableNodeCliInspectArguments` fuse, but Playwright requires
|
||||||
# it to be enabled to test Electron apps, so turn it back on.
|
# it to be enabled to test Electron apps, so turn it back on.
|
||||||
- name: Set EnableNodeCliInspectArguments fuse enabled
|
- name: Set EnableNodeCliInspectArguments fuse enabled
|
||||||
run: $RUN_AS npx @electron/fuses write --app ${{ inputs.executable }} EnableNodeCliInspectArguments=on
|
run: $RUN_AS npx @electron/fuses write --app "$EXECUTABLE" EnableNodeCliInspectArguments=on
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
# We need sudo on Linux as it is installed in /opt/
|
# We need sudo on Linux as it is installed in /opt/
|
||||||
RUN_AS: ${{ runner.os == 'Linux' && 'sudo' || '' }}
|
RUN_AS: ${{ runner.os == 'Linux' && 'sudo' || '' }}
|
||||||
|
EXECUTABLE: ${{ steps.executable.outputs.path }}
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a
|
uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a
|
||||||
timeout-minutes: 10
|
timeout-minutes: 5
|
||||||
with:
|
with:
|
||||||
run: "yarn test ${{ runner.os != 'Linux' && '--ignore-snapshots' || '' }}"
|
run: "yarn test ${{ runner.os != 'Linux' && '--ignore-snapshots' || '' }}"
|
||||||
env:
|
env:
|
||||||
ELEMENT_DESKTOP_EXECUTABLE: ${{ inputs.executable }}
|
ELEMENT_DESKTOP_EXECUTABLE: ${{ steps.executable.outputs.path }}
|
||||||
|
|
||||||
- name: Upload HTML report
|
- name: Upload HTML report
|
||||||
if: always()
|
if: always()
|
||||||
|
2
.github/workflows/build_windows.yaml
vendored
2
.github/workflows/build_windows.yaml
vendored
@ -225,4 +225,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
artifact: win-${{ inputs.arch }}
|
artifact: win-${{ inputs.arch }}
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
executable: ${{ inputs.arch == 'ia32' && './dist/win-ia32-unpacked/Element.exe' || './dist/win-unpacked/Element.exe' }}
|
executable: ./dist/win*-unpacked/Element*.exe
|
||||||
|
Loading…
x
Reference in New Issue
Block a user