File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build Linux
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ build :
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - name : Checkout
12+ uses : actions/checkout@v4
13+
14+ - name : Install Linux dependencies
15+ run : |
16+ sudo apt update
17+ sudo apt install -y \
18+ libwebkit2gtk-4.1-dev \
19+ libgtk-3-dev \
20+ libayatana-appindicator3-dev \
21+ librsvg2-dev \
22+ patchelf \
23+ pkg-config \
24+ build-essential
25+
26+ - name : Set up Node.js
27+ uses : actions/setup-node@v4
28+ with :
29+ node-version : 20
30+
31+ - name : Enable Corepack and install Yarn
32+ run : |
33+ corepack enable
34+ yarn --version
35+
36+ - name : Install frontend dependencies
37+ run : yarn install --frozen-lockfile
38+
39+ - name : Set up Rust
40+ uses : dtolnay/rust-toolchain@stable
41+ with :
42+ targets : x86_64-unknown-linux-gnu
43+
44+ - name : Cache Rust dependencies
45+ uses : Swatinem/rust-cache@v2
46+ with :
47+ workspaces : src-tauri
48+
49+ - name : Build Tauri app
50+ run : yarn tauri build
51+ env :
52+ TAURI_SIGNING_PRIVATE_KEY : ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
53+ TAURI_SIGNING_PRIVATE_KEY_PASSWORD : ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
54+
55+ - name : Upload installer
56+ uses : actions/upload-artifact@v4
57+ with :
58+ name : game-library-linux
59+ path : |
60+ src-tauri/target/release/bundle/deb/*.deb
61+ src-tauri/target/release/bundle/rpm/*.rpm
62+ src-tauri/target/release/bundle/appimage/*.AppImage
63+ if-no-files-found : error
64+ retention-days : 30
You can’t perform that action at this time.
0 commit comments