forked from myparsleycat/nahida-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (53 loc) · 1.42 KB
/
Copy pathbuild.yml
File metadata and controls
64 lines (53 loc) · 1.42 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
name: build
on:
push:
branches: [linux]
tags: ["v*"]
pull_request:
branches: [linux]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
cache-workspaces: |
native/native-mod
native/native-fs
- name: System deps
run: sudo apt-get update && sudo apt-get install -y libarchive-tools
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build native modules
run: pnpm run build:native
- name: Build AppImage + pacman
run: pnpm run build:linux
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: linux-dist
path: |
dist/*.AppImage
dist/*.pacman
if-no-files-found: error
- name: Create GitHub Release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
with:
files: |
dist/*.AppImage
dist/*.pacman
draft: false
prerelease: false