Refactor CI/CD workflows
Some checks failed
Build Windows Package / fetch (push) Failing after 9m4s
Build Windows Package / Windows Build (push) Has been skipped

This commit is contained in:
2025-04-20 22:13:26 +02:00
parent 262abf5847
commit e8c6f9d464
26 changed files with 91 additions and 1286 deletions

View File

@@ -33,7 +33,7 @@ on:
permissions: {} # No permissions required
jobs:
build:
runs-on: windows-2025
runs-on: windows-gp
environment: ${{ inputs.sign && 'packages.element.io' || '' }}
env:
SIGNTOOL_PATH: "C:/Program Files (x86)/Windows Kits/10/bin/10.0.26100.0/x86/signtool.exe"
@@ -106,6 +106,16 @@ jobs:
- name: Install Deps
run: "yarn install --frozen-lockfile"
- name: Append Piskot to version
run: |
$Version = $(Get-Content package.json | ConvertFrom-Json).version
if (-not $Version.EndsWith("-piskot")) {
$Version = "$Version-piskot"
$Package = Get-Content package.json | ConvertFrom-Json
$Package.version = $Version
$Package | ConvertTo-Json -Depth 100 | Set-Content package.json
}
- name: Insert config snippet
if: steps.config.outputs.extra_config != ''
shell: bash
@@ -215,12 +225,4 @@ jobs:
Test-Path './dist/squirrel-windows*/Element Setup*.exe'
Test-Path './dist/squirrel-windows*/element-desktop-*-full.nupkg'
Test-Path './dist/squirrel-windows*/RELEASES'
Test-Path './dist/Element*.msi'
test:
needs: build
uses: ./.github/workflows/build_test.yaml
with:
artifact: win-${{ inputs.arch }}
runs-on: ${{ inputs.arch == 'arm64' && 'windows-11-arm' || 'windows-2022' }}
executable: ./dist/win*-unpacked/Element*.exe
Test-Path './dist/Element*.msi'