forked from vitonsky/deepink
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (61 loc) · 2.17 KB
/
release.yml
File metadata and controls
71 lines (61 loc) · 2.17 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Release version
permissions:
# required to create releases / upload assets
contents: write
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
jobs:
build:
# build for macOS, Windows and Linux
strategy:
matrix:
# TODO: add `macos-15-intel` for production releases
# See docs https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#standard-github-hosted-runners-for-public-repositories
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 60
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
# Setup macOS
- name: "macOS: accept Xcode license (required before building)"
if: runner.os == 'macOS'
run: |
# ensure Xcode path and accept license
if [ -d "/Applications/Xcode.app" ]; then
sudo xcode-select --switch /Applications/Xcode.app || true
sudo xcodebuild -license accept || true
else
echo "Warning: /Applications/Xcode.app not found on runner. If this step fails on self-hosted mac runners, ensure Xcode is installed."
fi
# Setup Windows
# - name: Install WiX Toolset v3 (via Chocolatey)
# if: runner.os == 'Windows'
# shell: powershell
# run: |
# choco install -y wixtoolset --version=3.14.0
# echo "C:\Program Files (x86)\WiX Toolset v3.14\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Verify WiX installation
if: runner.os == 'Windows'
shell: powershell
continue-on-error: true
run: |
$env:PATH = "C:\wix314;$env:PATH"
candle.exe -? 2>&1 | Select-Object -First 1
light.exe -? 2>&1 | Select-Object -First 1
exit 0 # Force success exit code
- name: Build app
run: make package artifacts
- name: Upload artifacts to release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
make publish