-
-
Notifications
You must be signed in to change notification settings - Fork 626
91 lines (77 loc) · 2.32 KB
/
Copy pathrelease.yml
File metadata and controls
91 lines (77 loc) · 2.32 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
82
83
84
85
86
87
88
89
90
91
name: Release Desktop App
on:
release:
types: [published]
permissions:
contents: write
concurrency:
group: release-${{ github.event.release.tag_name }}
cancel-in-progress: false
jobs:
build:
name: Build ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Linux x64
os: ubuntu-22.04
args: --bundles deb,rpm,appimage
rust-targets: ""
- name: Windows x64
os: windows-2025
args: --no-sign
rust-targets: ""
- name: macOS Apple Silicon
os: macos-latest
args: --target aarch64-apple-darwin --no-sign
rust-targets: aarch64-apple-darwin
- name: macOS Intel
os: macos-latest
args: --target x86_64-apple-darwin --no-sign
rust-targets: x86_64-apple-darwin
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: lts/*
cache: npm
cache-dependency-path: package-lock.json
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Install macOS Rust target
if: matrix.rust-targets != ''
run: rustup target add ${{ matrix.rust-targets }}
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
curl \
file \
libayatana-appindicator3-dev \
libfuse2 \
librsvg2-dev \
libssl-dev \
libwebkit2gtk-4.1-dev \
libxdo-dev \
patchelf \
rpm \
wget
- name: Install frontend dependencies
run: npm ci
- name: Build and upload release assets
uses: tauri-apps/tauri-action@v0.6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_OPTIONS: --max-old-space-size=4096
with:
projectPath: apps/geolibre-desktop
releaseId: ${{ github.event.release.id }}
tagName: ${{ github.event.release.tag_name }}
args: ${{ matrix.args }}
uploadPlainBinary: true