-
-
Notifications
You must be signed in to change notification settings - Fork 48
129 lines (113 loc) · 5.11 KB
/
Copy pathrelease.yml
File metadata and controls
129 lines (113 loc) · 5.11 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
name: "Release All"
on:
workflow_dispatch:
jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- platform: "macos-latest"
args: "--target aarch64-apple-darwin"
type: "aarch64"
assetPattern: "[name]_[ver]_[arch][ext]"
- platform: "macos-latest"
args: "--target x86_64-apple-darwin"
type: "x86_64"
assetPattern: "[name]_[ver]_[arch][ext]"
- platform: "ubuntu-22.04"
args: ""
assetPattern: "[name]_[ver]_[arch][ext]"
- platform: "ubuntu-22.04-arm"
args: ""
assetPattern: "[name]_[ver]_[arch][ext]"
- platform: "windows-latest"
args: "--target x86_64-pc-windows-msvc"
type: "x86_64"
assetPattern: "[name]_[ver]_[arch][ext]"
- platform: "windows-11-arm"
args: "--target aarch64-pc-windows-msvc"
type: "aarch64"
assetPattern: "[name]_[ver]_[arch][ext]"
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v5
- name: setup node
uses: actions/setup-node@v6
with:
node-version: lts/*
cache: "npm"
- name: install Rust stable (linux)
uses: dtolnay/rust-toolchain@stable
if: matrix.platform == 'ubuntu-22.04' || matrix.platform == 'ubuntu-22.04-arm'
- name: install Rust stable (macos)
uses: dtolnay/rust-toolchain@stable
if: matrix.platform == 'macos-latest'
with:
targets: ${{ matrix.type == 'aarch64' && 'aarch64-apple-darwin' || 'x86_64-apple-darwin' }}
- name: install Rust stable (windows)
uses: dtolnay/rust-toolchain@stable
if: matrix.platform == 'windows-latest' || matrix.platform == 'windows-11-arm'
with:
targets: ${{ matrix.type == 'aarch64' && 'aarch64-pc-windows-msvc' || 'x86_64-pc-windows-msvc' }}
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"
key: ${{ matrix.platform }}
- name: install dependencies (ubuntu-22.04 x86_64)
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential curl wget file \
libgtk-3-dev libxdo-dev libssl-dev \
libappindicator3-dev librsvg2-dev patchelf xdg-utils
mkdir -p /tmp/ubuntu-packages
cd /tmp/ubuntu-packages
wget https://launchpadlibrarian.net/723972773/libwebkit2gtk-4.1-0_2.44.0-0ubuntu0.22.04.1_amd64.deb
wget https://launchpadlibrarian.net/723972761/libwebkit2gtk-4.1-dev_2.44.0-0ubuntu0.22.04.1_amd64.deb
wget https://launchpadlibrarian.net/723972770/libjavascriptcoregtk-4.1-0_2.44.0-0ubuntu0.22.04.1_amd64.deb
wget https://launchpadlibrarian.net/723972746/libjavascriptcoregtk-4.1-dev_2.44.0-0ubuntu0.22.04.1_amd64.deb
wget https://launchpadlibrarian.net/723972735/gir1.2-javascriptcoregtk-4.1_2.44.0-0ubuntu0.22.04.1_amd64.deb
wget https://launchpadlibrarian.net/723972739/gir1.2-webkit2-4.1_2.44.0-0ubuntu0.22.04.1_amd64.deb
wget https://launchpadlibrarian.net/606433947/libicu70_70.1-2ubuntu1_amd64.deb
wget https://launchpadlibrarian.net/606433941/libicu-dev_70.1-2ubuntu1_amd64.deb
wget https://launchpadlibrarian.net/606433945/icu-devtools_70.1-2ubuntu1_amd64.deb
wget https://launchpadlibrarian.net/595623693/libjpeg8_8c-2ubuntu10_amd64.deb
wget https://launchpadlibrarian.net/587202140/libjpeg-turbo8_2.1.2-0ubuntu1_amd64.deb
wget https://launchpadlibrarian.net/592959859/xdg-desktop-portal-gtk_1.14.0-1build1_amd64.deb
sudo apt-get install -y /tmp/ubuntu-packages/*.deb
- name: install dependencies (ubuntu-22.04-arm)
if: matrix.platform == 'ubuntu-22.04-arm'
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
libayatana-appindicator3-dev \
librsvg2-dev patchelf xdg-utils
- name: install portable tauri-cli (ubuntu-22.04 x86_64 only)
if: matrix.platform == 'ubuntu-22.04'
run: |
cargo install tauri-cli \
--git https://github.com/tauri-apps/tauri \
--branch feat/truly-portable-appimage \
--force
echo "tauri-cli version: $(cargo tauri --version)"
- name: install frontend dependencies
run: npm install
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
TAURI_BUNDLER_NEW_APPIMAGE_FORMAT: true
with:
tagName: v__VERSION__
releaseName: "RClone Manager v__VERSION__"
releaseBody: "See the assets to download this version and install."
releaseDraft: true
prerelease: false
args: ${{ matrix.args }}