-
Notifications
You must be signed in to change notification settings - Fork 0
208 lines (183 loc) · 5.99 KB
/
Copy pathdebug.yml
File metadata and controls
208 lines (183 loc) · 5.99 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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
name: Debug Bundles
on:
workflow_dispatch:
permissions:
contents: read
actions: read
concurrency:
group: debug-${{ github.ref }}
cancel-in-progress: false
env:
CI: true
CARGO_INCREMENTAL: 0
jobs:
ci:
name: Build raw debug artifacts
uses: ./.github/workflows/ci.yml
permissions:
contents: read
with:
upload_build_artifacts: true
bundle-desktop:
name: Bundle ${{ matrix.name }}
needs: ci
runs-on: ${{ matrix.runner }}
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
include:
- name: Windows x64
runner: windows-latest
target: x86_64-pc-windows-msvc
artifact: ci-build-windows-x64
bundle_artifact: debug-bundles-windows-x64
rust_targets: x86_64-pc-windows-msvc
install_linux_deps: false
- name: Windows arm64
runner: windows-11-arm
target: aarch64-pc-windows-msvc
artifact: ci-build-windows-arm64
bundle_artifact: debug-bundles-windows-arm64
rust_targets: aarch64-pc-windows-msvc
install_linux_deps: false
- name: macOS Intel
runner: macos-26-intel
target: x86_64-apple-darwin
artifact: ci-build-macos-intel
bundle_artifact: debug-bundles-macos-intel
rust_targets: x86_64-apple-darwin
install_linux_deps: false
- name: macOS arm64
runner: macos-26
target: aarch64-apple-darwin
artifact: ci-build-macos-arm64
bundle_artifact: debug-bundles-macos-arm64
rust_targets: aarch64-apple-darwin
install_linux_deps: false
- name: Linux x64 GNU
runner: ubuntu-24.04
target: x86_64-unknown-linux-gnu
artifact: ci-build-linux-x64-gnu
bundle_artifact: debug-bundles-linux-x64-gnu
rust_targets: x86_64-unknown-linux-gnu
install_linux_deps: true
- name: Linux arm64 GNU
runner: ubuntu-24.04-arm
target: aarch64-unknown-linux-gnu
artifact: ci-build-linux-arm64-gnu
bundle_artifact: debug-bundles-linux-arm64-gnu
rust_targets: aarch64-unknown-linux-gnu
install_linux_deps: true
steps:
- name: Check out repository
uses: actions/checkout@v6
with:
submodules: recursive
- name: Download raw build archive
uses: actions/download-artifact@v8
with:
name: ${{ matrix.artifact }}
path: raw-build
- name: Extract raw build directory
shell: bash
run: |
mkdir -p "target/${{ matrix.target }}/debug"
tar \
-C "target/${{ matrix.target }}/debug" \
-xf "raw-build/${{ matrix.artifact }}.tar"
- name: Install Linux bundle dependencies
if: ${{ matrix.install_linux_deps }}
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
curl \
file \
libayatana-appindicator3-dev \
libgtk-3-dev \
librsvg2-dev \
libssl-dev \
libwebkit2gtk-4.1-dev \
libxdo-dev \
patchelf \
pkg-config \
rpm \
wget \
xdg-utils
- name: Install Rust toolchain and targets
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: ${{ matrix.rust_targets }}
- name: Set up pnpm
uses: pnpm/action-setup@v4
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: "24"
cache: pnpm
- name: Install JavaScript dependencies
run: pnpm install --frozen-lockfile
- name: Bundle desktop target
shell: bash
run: |
pnpm tauri bundle \
--debug \
--target "${{ matrix.target }}" \
--verbose
- name: Package desktop debug bundles
shell: bash
run: |
mkdir -p debug-artifacts
tar \
-C "target/${{ matrix.target }}/debug/bundle" \
-cf "debug-artifacts/${{ matrix.bundle_artifact }}.tar" \
.
- name: Upload desktop debug bundle archive
uses: actions/upload-artifact@v6
with:
name: ${{ matrix.bundle_artifact }}
if-no-files-found: error
retention-days: 7
path: debug-artifacts/${{ matrix.bundle_artifact }}.tar
reupload-mobile:
name: Reupload ${{ matrix.name }}
needs: ci
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include:
- name: Android arm64-v8a
artifact: ci-build-android-arm64-v8a
debug_artifact: debug-android-arm64-v8a
- name: Android armeabi-v7a
artifact: ci-build-android-armeabi-v7a
debug_artifact: debug-android-armeabi-v7a
- name: Android x86
artifact: ci-build-android-x86
debug_artifact: debug-android-x86
- name: Android x86_64
artifact: ci-build-android-x86_64
debug_artifact: debug-android-x86_64
- name: Android universal
artifact: ci-build-android-universal
debug_artifact: debug-android-universal
- name: iOS simulator
artifact: ci-build-ios-simulator
debug_artifact: debug-ios-simulator
steps:
- name: Download mobile build artifacts
uses: actions/download-artifact@v8
with:
name: ${{ matrix.artifact }}
path: mobile-artifacts/${{ matrix.artifact }}
- name: Reupload mobile debug artifacts
uses: actions/upload-artifact@v6
with:
name: ${{ matrix.debug_artifact }}
if-no-files-found: error
retention-days: 7
path: mobile-artifacts/${{ matrix.artifact }}/${{ matrix.artifact }}.tar