-
Notifications
You must be signed in to change notification settings - Fork 16
71 lines (60 loc) · 1.96 KB
/
Copy pathtauri-build.yml
File metadata and controls
71 lines (60 loc) · 1.96 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: Build Desktop App
on:
push:
tags: ['v*']
workflow_dispatch:
permissions:
contents: write
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- platform: macos-latest
args: --target aarch64-apple-darwin
rust_target: aarch64-apple-darwin
- platform: macos-latest
args: --target x86_64-apple-darwin
rust_target: x86_64-apple-darwin
- platform: ubuntu-22.04
args: ''
rust_target: ''
- platform: windows-latest
args: ''
rust_target: ''
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: website/package-lock.json
- working-directory: ./website
run: npm ci
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.rust_target }}
- uses: swatinem/rust-cache@v2
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 }}