-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (48 loc) · 1.56 KB
/
Copy pathrelease.yml
File metadata and controls
50 lines (48 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build releases
on:
workflow_dispatch:
push:
tags: ["v*"]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [windows-2019, ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: pip
- run: python -m pip install --upgrade pip
- run: pip install -r requirements.txt
- name: Rebuild native Windows runtime
if: runner.os == 'Windows'
run: python build_native_runtime.py
- name: Install Inno Setup
if: runner.os == 'Windows'
run: choco install innosetup --yes --no-progress
- name: Build Windows portable application and installer
if: runner.os == 'Windows'
run: python build_installer.py
- name: Build Linux portable application
if: runner.os == 'Linux'
env:
OPENSCR_ONEFILE: "1"
run: python build_openscr.py
- name: Smoke test Windows executable
if: runner.os == 'Windows'
shell: pwsh
run: |
$exe = Get-ChildItem release -Recurse -Filter OpenSCR.exe | Select-Object -First 1
$process = Start-Process $exe.FullName -PassThru
Start-Sleep -Seconds 10
if ($process.HasExited) { throw "OpenSCR exited with code $($process.ExitCode)" }
Stop-Process -Id $process.Id
- uses: actions/upload-artifact@v4
with:
name: OpenSCR-${{ runner.os }}-x64
path: release/*
if-no-files-found: error