mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-31 13:39:58 +01:00
Format build.yaml
This commit is contained in:
parent
a99f9a6aee
commit
c6d44418b5
78
.github/workflows/build.yaml
vendored
78
.github/workflows/build.yaml
vendored
@ -13,72 +13,6 @@ jobs:
|
|||||||
config: ${{ github.event.pull_request.base.ref == 'develop' && 'element.io/nightly' || 'element.io/release' }}
|
config: ${{ github.event.pull_request.base.ref == 'develop' && 'element.io/nightly' || 'element.io/release' }}
|
||||||
version: ${{ github.event.pull_request.base.ref == 'develop' && 'develop' || '' }}
|
version: ${{ github.event.pull_request.base.ref == 'develop' && 'develop' || '' }}
|
||||||
|
|
||||||
windows:
|
|
||||||
needs: fetch
|
|
||||||
name: Windows
|
|
||||||
uses: ./.github/workflows/build_windows.yaml
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
arch: [ x64, x86 ]
|
|
||||||
with:
|
|
||||||
arch: ${{ matrix.arch }}
|
|
||||||
|
|
||||||
linux:
|
|
||||||
needs: fetch
|
|
||||||
name: Linux
|
|
||||||
uses: ./.github/workflows/build_linux.yaml
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
sqlcipher: [ system, static ]
|
|
||||||
with:
|
|
||||||
sqlcipher: ${{ matrix.sqlcipher }}
|
|
||||||
|
|
||||||
macos:
|
|
||||||
needs: fetch
|
|
||||||
name: macOS
|
|
||||||
uses: ./.github/workflows/build_macos.yaml
|
|
||||||
|
|
||||||
test:
|
|
||||||
needs:
|
|
||||||
- macos
|
|
||||||
- linux
|
|
||||||
- windows
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- name: macOS Universal
|
|
||||||
os: macos
|
|
||||||
artifact: macos
|
|
||||||
executable: "./dist/mac-universal/Element.app/Contents/MacOS/Element"
|
|
||||||
prepare_cmd: "find ./dist/mac-universal/Element.app -type f | perl -lne 'print if -B' | tr '\\n' '\\0' | xargs -0 -n1 chmod 755"
|
|
||||||
- name: 'Linux (sqlcipher: system)'
|
|
||||||
os: ubuntu
|
|
||||||
artifact: linux-sqlcipher-system
|
|
||||||
executable: "element-desktop"
|
|
||||||
prepare_cmd: "sudo apt install ./dist/*.deb"
|
|
||||||
- name: 'Linux (sqlcipher: static)'
|
|
||||||
os: ubuntu
|
|
||||||
artifact: linux-sqlcipher-static
|
|
||||||
executable: "element-desktop"
|
|
||||||
prepare_cmd: "sudo apt install ./dist/*.deb"
|
|
||||||
- name: Windows (x86)
|
|
||||||
os: windows
|
|
||||||
artifact: win-x86
|
|
||||||
executable: "./dist/win-ia32-unpacked/Element.exe"
|
|
||||||
- name: Windows (x64)
|
|
||||||
os: windows
|
|
||||||
artifact: win-x64
|
|
||||||
executable: "./dist/win-unpacked/Element.exe"
|
|
||||||
name: Test ${{ matrix.name }}
|
|
||||||
runs-on: ${{ matrix.os }}-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
config: ${{ github.event.pull_request.base.ref == 'develop' && 'element.io/nightly' || 'element.io/release' }}
|
|
||||||
version: ${{ github.event.pull_request.base.ref == 'develop' && 'develop' || '' }}
|
|
||||||
|
|
||||||
windows:
|
windows:
|
||||||
needs: fetch
|
needs: fetch
|
||||||
name: Windows
|
name: Windows
|
||||||
@ -112,12 +46,11 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# Disable macOS tests for now, they fail to run in CI, needs investigation.
|
- name: macOS Universal
|
||||||
# - name: macOS Universal
|
os: macos
|
||||||
# os: macos
|
artifact: macos
|
||||||
# artifact: macos
|
executable: "./dist/mac-universal/Element.app/Contents/MacOS/Element"
|
||||||
# executable: "./dist/mac-universal/Element.app/Contents/MacOS/Element"
|
prepare_cmd: "find ./dist/mac-universal/Element.app -type f | perl -lne 'print if -B' | tr '\\n' '\\0' | xargs -0 -n1 chmod 755"
|
||||||
# prepare_cmd: "chmod +x ./dist/mac-universal/Element.app/Contents/MacOS/Element"
|
|
||||||
- name: "Linux (sqlcipher: system)"
|
- name: "Linux (sqlcipher: system)"
|
||||||
os: ubuntu
|
os: ubuntu
|
||||||
artifact: linux-sqlcipher-system
|
artifact: linux-sqlcipher-system
|
||||||
@ -167,6 +100,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.artifact }}
|
name: ${{ matrix.artifact }}
|
||||||
path: test_artifacts
|
path: test_artifacts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user