Repository navigation
74 lines (63 loc) · 2.3 KB
/
Copy pathtauri-build.yml
File metadata and controls
74 lines (63 loc) · 2.3 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
name: Build Desktop App
on:
push:
tags: ['v*']
workflow_dispatch:
permissions:
contents: write
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- platform: macos-15
args: --target aarch64-apple-darwin
rust_target: aarch64-apple-darwin
- platform: macos-15
args: --target x86_64-apple-darwin
rust_target: x86_64-apple-darwin
- platform: ubuntu-22.04
args: ''
rust_target: ''
- platform: windows-2025
args: ''
rust_target: ''
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 24
cache: npm
cache-dependency-path: website/package-lock.json
- working-directory: ./website
run: npm ci
# Ref-as-toolchain action: pinning the SHA requires naming the toolchain
# explicitly, or the action reads the SHA as a toolchain name.
- uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1
with:
toolchain: stable
targets: ${{ matrix.rust_target }}
- uses: swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
workspaces: src-tauri
- name: Install Linux deps
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
# macOS builds are ad-hoc signed (signingIdentity: "-") — not notarized,
# not distributable via Gatekeeper outside of dev/internal use.
# Pinned to v0 tag SHA to avoid floating-tag supply chain risk.
- uses: tauri-apps/tauri-action@fce9c6108b31ea247710505d3aaaa893ee6768d4 # v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_BUILD: '1'
with:
tagName: ${{ github.ref_name }}
releaseName: 'Agentic Coding ${{ github.ref_name }}'
releaseBody: 'Desktop build of Agentic Coding reference book.'
releaseDraft: true
prerelease: false
args: ${{ matrix.args }}