-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (52 loc) · 1.77 KB
/
Copy pathrelease-standalone.yml
File metadata and controls
62 lines (52 loc) · 1.77 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
name: Release Standalone
on:
push:
tags:
- "standalone/*"
permissions:
contents: write
jobs:
build:
name: Build (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: "latest"
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Install Linux dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev
- name: Install frontend dependencies
run: bun install
working-directory: standalone
- name: Extract release version
run: echo "RELEASE_VERSION=${GITHUB_REF_NAME#standalone/}" >> "$GITHUB_ENV"
- name: Build extension
# Build both release and debug versions
run: |
cargo build --release
cargo build
working-directory: absurd-sqlite-extension
- name: Build and release
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Use ad-hoc signing on macOS by setting identity to '-' per Tauri v2 docs:
# https://v2.tauri.app/distribute/sign/macos/#ad-hoc-signing
APPLE_SIGNING_IDENTITY: ${{ matrix.os == 'macos-latest' && '-' || '' }}
with:
projectPath: standalone
tagName: ${{ github.ref_name }}
releaseName: Standalone ${{ env.RELEASE_VERSION }}
releaseBody: Automated release for ${{ env.RELEASE_VERSION }}
includeDebug: true