-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (69 loc) · 2.57 KB
/
Copy pathrelease.yml
File metadata and controls
81 lines (69 loc) · 2.57 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
name: Release Node UI
on:
push:
tags:
- "node-ui-v*"
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@v5
- name: Install system deps (Linux)
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
# libfuse2: linuxdeploy is itself an AppImage and needs FUSE2 to
# self-mount at build time. The ubuntu-22.04 GitHub runner stopped
# pre-installing libfuse2; without it the AppImage bundling step
# exits with "failed to run linuxdeploy" and no stderr.
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libfuse2
- uses: actions/setup-node@v5
with:
node-version: 22
- name: Install pnpm
# Pin to v9: pnpm 10 added strict-build-scripts which rejects
# post-install scripts (esbuild, @tailwindcss/oxide) by default
# and ERR_PNPM_IGNORED_BUILDS exits 1 even with
# `pnpm.onlyBuiltDependencies` declared in package.json.
# Stay on v9 until we fully migrate to v10 config.
run: npm install -g pnpm@9
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.rust_target }}
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: src-tauri -> target
- name: Install frontend deps
run: pnpm install --frozen-lockfile
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_KEY_PASSWORD }}
with:
tagName: ${{ github.ref_name }}
releaseName: "Synapseia Node ${{ github.ref_name }}"
releaseBody: "See the [CHANGELOG](https://github.com/erscoder/synapseia-node-ui/blob/main/CHANGELOG.md) for details."
releaseDraft: false
prerelease: false
args: ${{ matrix.args }}