Skip to content

Commit 2069a54

Browse files
committed
attempted workflow
1 parent 9eb8e18 commit 2069a54

File tree

2 files changed

+79
-128
lines changed

2 files changed

+79
-128
lines changed

.github/workflows/release.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
env:
9+
BIN_NAME: mnemonic-hasher
10+
11+
jobs:
12+
build:
13+
name: build (${{ matrix.target }})
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
include:
19+
# Linux (x86_64)
20+
- os: ubuntu-22.04
21+
args: ""
22+
# Windows (x86_64)
23+
- os: windows-latest
24+
args: ""
25+
# macOS (Apple Silicon)
26+
- os: macos-latest
27+
args: "--target aarch64-apple-darwin"
28+
# macOS (Intel)
29+
- os: macos-latest
30+
args: "--target x86_64-apple-darwin"
31+
32+
steps:
33+
- uses: actions/checkout@v4
34+
35+
# Install pnpm
36+
- uses: pnpm/action-setup@v4
37+
with:
38+
version: 9
39+
40+
- uses: actions/setup-node@v4
41+
with:
42+
version: 20
43+
cache: "pnpm"
44+
45+
# Install Rust toolchain + target
46+
- name: Install Rust
47+
uses: dtolnay/rust-toolchain@stable
48+
with:
49+
# Install both mac targets on macOS runners so we can cross-build each job quickly.
50+
targets: ${{ matrix.os == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
51+
52+
- name: Install Linux build deps
53+
if: matrix.os == 'ubuntu-22.04'
54+
run: |
55+
sudo apt-get update
56+
# Tauri v2 needs webkit2gtk 4.1; patchelf is needed by the bundler.
57+
sudo apt-get install -y libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev patchelf
58+
59+
# Install dependencies
60+
- name: Install pnpm dependencies
61+
run: pnpm install --frozen-lockfile
62+
63+
- name: Build & publish with tauri-action
64+
uses: tauri-apps/tauri-action@v0
65+
env:
66+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67+
# Workarounds for linuxdeploy quirks when stripping/using FUSE:
68+
NO_STRIP: "1" # avoids strip failures on libs with .relr.dyn
69+
APPIMAGE_EXTRACT_AND_RUN: "1" # runs AppImages without FUSE
70+
with:
71+
# Let the action create/find the release for this tag and upload artifacts.
72+
tagName: v__VERSION__
73+
releaseName: "scriptorium v__VERSION__"
74+
releaseBody: "See the assets to download this version."
75+
releaseDraft: false
76+
prerelease: false
77+
args: ${{ matrix.args }}
78+
tauriScript: pnpm tauri
79+
projectPath: .

.github/workflows/release.yml.todo

Lines changed: 0 additions & 128 deletions
This file was deleted.

0 commit comments

Comments
 (0)