-
-
Notifications
You must be signed in to change notification settings - Fork 11
187 lines (169 loc) · 5.75 KB
/
Copy pathbuild.yml
File metadata and controls
187 lines (169 loc) · 5.75 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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
name: 'Build'
on:
workflow_dispatch:
pull_request:
paths:
- 'index.html'
- 'package.json'
- 'pnpm-lock.yaml'
- 'pnpm-workspace.yaml'
- 'public/**'
- 'src/**'
- 'src-tauri/**'
- 'tsconfig*.json'
- 'vite.config.ts'
- '.github/actions/setup-tauri-build/**'
- '.github/actions/setup-portable-appimage/**'
- '.github/actions/upload-tauri-artifact/**'
- '.github/workflows/build.yml'
push:
branches:
- main
- master
- develop
paths:
- 'index.html'
- 'package.json'
- 'pnpm-lock.yaml'
- 'pnpm-workspace.yaml'
- 'public/**'
- 'src/**'
- 'src-tauri/**'
- 'tsconfig*.json'
- 'vite.config.ts'
- '.github/actions/setup-tauri-build/**'
- '.github/actions/setup-portable-appimage/**'
- '.github/actions/upload-tauri-artifact/**'
- '.github/workflows/build.yml'
permissions:
contents: read
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- platform: 'macos-26'
label: 'macOS (Apple Silicon)'
artifact: 'macos-apple-silicon'
args: '--target aarch64-apple-darwin'
- platform: 'macos-26-intel'
label: 'macOS (Intel)'
artifact: 'macos-intel'
args: '--target x86_64-apple-darwin'
- platform: 'ubuntu-22.04'
label: 'Ubuntu'
artifact: 'linux-ubuntu'
rpm_artifact: 'linux-fedora'
args: '--bundles deb,rpm'
- platform: 'ubuntu-22.04-arm'
label: 'Ubuntu (ARM)'
artifact: 'linux-ubuntu-arm'
rpm_artifact: 'linux-fedora-arm'
args: '--bundles deb,rpm'
- platform: 'windows-latest'
label: 'Windows'
nsis_artifact: 'windows-nsis'
msi_artifact: 'windows-msi'
args: ''
- platform: 'windows-11-arm'
label: 'Windows (ARM)'
nsis_artifact: 'windows-arm-nsis'
msi_artifact: 'windows-arm-msi'
args: ''
runs-on: ${{ matrix.platform }}
name: ${{ matrix.label }}
timeout-minutes: 45
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
persist-credentials: false
- name: Setup Tauri build
uses: ./.github/actions/setup-tauri-build
with:
platform: ${{ matrix.platform }}
rust-targets: ${{ matrix.platform == 'macos-26' && 'aarch64-apple-darwin' || '' }}
- name: Show Apple toolchain
if: startsWith(matrix.platform, 'macos')
shell: bash
run: |
xcodebuild -version
xcrun --sdk macosx --show-sdk-version
xcrun --sdk macosx --show-sdk-path
- uses: tauri-apps/tauri-action@84b9d35b5fc46c1e45415bdb6144030364f7ebc5 # v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: ${{ matrix.args }} --config '{"bundle":{"createUpdaterArtifacts":false}}'
- name: Upload macOS artifacts
if: startsWith(matrix.platform, 'macos')
uses: ./.github/actions/upload-tauri-artifact
with:
name: Chiri-${{ matrix.artifact }}
path: |
src-tauri/target/**/release/bundle/**/*.dmg
- name: Upload Ubuntu artifacts
if: startsWith(matrix.platform, 'ubuntu')
uses: ./.github/actions/upload-tauri-artifact
with:
name: Chiri-${{ matrix.artifact }}
path: |
src-tauri/target/**/release/bundle/**/*.deb
- name: Upload Fedora artifacts
if: startsWith(matrix.platform, 'ubuntu')
uses: ./.github/actions/upload-tauri-artifact
with:
name: Chiri-${{ matrix.rpm_artifact }}
path: |
src-tauri/target/**/release/bundle/**/*.rpm
- name: Upload Windows NSIS artifacts
if: startsWith(matrix.platform, 'windows')
uses: ./.github/actions/upload-tauri-artifact
with:
name: Chiri-${{ matrix.nsis_artifact }}
path: |
src-tauri/target/**/release/bundle/**/*-setup.exe
- name: Upload Windows MSI artifacts
if: startsWith(matrix.platform, 'windows')
uses: ./.github/actions/upload-tauri-artifact
with:
name: Chiri-${{ matrix.msi_artifact }}
path: |
src-tauri/target/**/release/bundle/**/*.msi
appimage:
strategy:
fail-fast: false
matrix:
include:
- platform: 'ubuntu-24.04'
label: 'AppImage (x86_64)'
artifact: 'linux-appimage'
- platform: 'ubuntu-24.04-arm'
label: 'AppImage (ARM64)'
artifact: 'linux-appimage-arm'
runs-on: ${{ matrix.platform }}
container: ghcr.io/pkgforge-dev/archlinux@sha256:f6fc7e14b0612a355d7ab50efb3cc40010ba28e4766860bd238d313b308f190b
name: ${{ matrix.label }}
timeout-minutes: 60
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
persist-credentials: false
- name: Setup portable AppImage build
uses: ./.github/actions/setup-portable-appimage
- name: Build portable AppImage
uses: tauri-apps/tauri-action@84b9d35b5fc46c1e45415bdb6144030364f7ebc5 # v0
env:
TAURI_BUNDLER_NEW_APPIMAGE_FORMAT: 'true'
with:
tauriScript: cargo tauri
args: --bundles appimage --config '{"bundle":{"createUpdaterArtifacts":false}}'
- name: Upload AppImage artifact
uses: ./.github/actions/upload-tauri-artifact
with:
name: Chiri-${{ matrix.artifact }}
path: |
src-tauri/target/**/release/bundle/**/*.AppImage