mirror of
https://github.com/element-hq/element-desktop
synced 2025-04-22 17:34:28 +02:00
51 lines
1.5 KiB
YAML
51 lines
1.5 KiB
YAML
name: Build and Test
|
|
on:
|
|
pull_request: {}
|
|
push:
|
|
branches: [develop, staging, master]
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
permissions: {} # No permissions required
|
|
jobs:
|
|
fetch:
|
|
uses: ./.github/workflows/build_prepare.yaml
|
|
permissions:
|
|
contents: read
|
|
with:
|
|
config: ${{ (github.event.pull_request.base.ref || github.ref_name) == 'develop' && 'element.io/nightly' || 'element.io/release' }}
|
|
version: ${{ (github.event.pull_request.base.ref || github.ref_name) == 'develop' && 'develop' || '' }}
|
|
|
|
windows:
|
|
needs: fetch
|
|
name: Windows
|
|
uses: ./.github/workflows/build_windows.yaml
|
|
strategy:
|
|
matrix:
|
|
arch: [x64, ia32, arm64]
|
|
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:
|
|
sqlcipher: ${{ matrix.sqlcipher }}
|
|
arch: ${{ matrix.arch }}
|
|
|
|
macos:
|
|
needs: fetch
|
|
name: macOS
|
|
uses: ./.github/workflows/build_macos.yaml
|
|
|
|
tests-done:
|
|
needs: [windows, linux, macos]
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- run: echo "Tests successful"
|