Refactor CI/CD workflows
This commit is contained in:
22
.github/workflows/build_windows.yaml
vendored
22
.github/workflows/build_windows.yaml
vendored
@@ -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'
|
||||
Reference in New Issue
Block a user