-
Notifications
You must be signed in to change notification settings - Fork 2
109 lines (89 loc) · 2.85 KB
/
build.yml
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: Build Unsigned Binaries
on:
push:
release:
types: [released]
workflow_dispatch:
env:
UV_VERSION: '0.5.11'
concurrency:
group: ${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download uv
run: |
mkdir temp
mkdir -p ./assets/bin
curl -L https://github.com/astral-sh/uv/releases/download/${{ env.UV_VERSION }}/uv-x86_64-unknown-linux-gnu.tar.gz -o uv.tar.gz
tar -xzf uv.tar.gz -C ./temp
mv ./temp/uv-x86_64-unknown-linux-gnu/uv ./assets/bin/uv
rm -rf ./temp/uv-x86_64-unknown-linux-gnu
- name: setup nodejs
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install deps and build GUI
run: |
npm install --include=dev
npm run app:dist
- name: Publish artifact - GUI
uses: actions/upload-artifact@v4
with:
name: 'Invoke Community Edition.AppImage'
path: 'dist/Invoke Community Edition.AppImage'
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Download uv
run: |
mkdir temp
mkdir -p ./assets/bin
curl -L https://github.com/astral-sh/uv/releases/download/${{ env.UV_VERSION }}/uv-aarch64-apple-darwin.tar.gz -o uv.tar.gz
tar -xzf uv.tar.gz -C ./temp
mv ./temp/uv-aarch64-apple-darwin/uv ./assets/bin/uv
rm -rf ./temp/uv-aarch64-apple-darwin
- name: setup nodejs
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install deps and build GUI
run: |
npm install --include=dev
npm run app:dist
- name: Publish artifact - GUI
uses: actions/upload-artifact@v4
with:
name: 'Invoke Community Edition.dmg'
path: 'dist/Invoke Community Edition.dmg'
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Download uv
run: |
mkdir temp
mkdir -p ./assets/bin
curl -L https://github.com/astral-sh/uv/releases/download/${{ env.UV_VERSION }}/uv-x86_64-pc-windows-msvc.zip -o uv.zip
unzip uv.zip -d temp/
mv temp/uv.exe assets/bin/uv.exe
- name: setup nodejs
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install deps and build GUI
run: |
npm install --include=dev
npm run app:dist
- name: Publish artifact - GUI - UNSIGNED
uses: actions/upload-artifact@v4
with:
name: 'Invoke Community Edition.exe - UNSIGNED'
path: 'dist/Invoke Community Edition.exe'