-
Notifications
You must be signed in to change notification settings - Fork 42
122 lines (104 loc) · 3.83 KB
/
build-unstable-dev.yml
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
name: Build-Unstable-Dev-Product
on:
push:
branches:
- wdf_dev
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- name: Check out Git repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: pnpm/[email protected]
with:
version: 8.6.12
- name: Install Node.js 18
uses: actions/setup-node@v2
with:
node-version: 18.12.1
cache: 'pnpm'
- name: Install global dependencies
run: npm i prisma fastify-cli turbo tsx [email protected] -g
- name: Install dependencies
run: pnpm install
- name: Copy Env
run: cp .env.example .env
# - name: Build sqlite3 binaries
# run: tsx ./scripts/build.sqlite3.ts
# - name: Install RPM & Pacman (Linux)
# if: runner.os == 'Linux'
# run: |
# sudo apt-get update &&
# sudo apt-get install --no-install-recommends -y rpm &&
# sudo apt-get install --no-install-recommends -y bsdtar &&
# sudo apt-get install --no-install-recommends -y libopenjp2-tools
# - name: Install Snapcraft (Linux)
# uses: samuelmeuli/action-snapcraft@v1
# if: startsWith(matrix.os, 'ubuntu')
# with:
# Disable since the Snapcraft token is currently not working
# snapcraft_token: ${{ secrets.snapcraft_token }}
- name: Build-Unstable-Dev XtifyMusic app
env:
ELECTRON_WEB_SERVER_PORT: 42710
ELECTRON_DEV_NETEASE_API_PORT: 30001
UNBLOCK_SERVER_PORT: 30003
VITE_APP_NETEASE_API_URL: /netease
ENABLE_FLAC: "true"
ENABLE_LOCAL_VIP: "svip"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm package
# - name: Build-Release Electron app
# uses: njzydark/[email protected]
# env:
# ELECTRON_WEB_SERVER_PORT: 42710
# ELECTRON_DEV_NETEASE_API_PORT: 30001
# UNBLOCK_SERVER_PORT: 30003
# VITE_APP_NETEASE_API_URL: /netease
# ENABLE_FLAC: "true"
# ENABLE_LOCAL_VIP: "svip"
# with:
# # GitHub token, automatically provided to the action
# # (No need to define this secret in the repo settings)
# github_token: ${{ secrets.github_token }}
# # If the commit is tagged with a version (e.g. "v1.0.0"),
# # release the app after building
# release: ${{ startsWith(github.ref, 'refs/tags/v') }}
# args: package
# # skip_package_manager_install: true
# package_manager: pnpm
- name: Upload Artifact (macOS universal)
uses: actions/upload-artifact@v3
with:
name: R3PLAYX-mac-universal
path: ./packages/desktop/release/*-universal.dmg
if-no-files-found: ignore
- name: Upload Artifact (macOS x64)
uses: actions/upload-artifact@v3
with:
name: R3PLAYX-mac-x64
path: ./packages/desktop/release/*-x64.dmg
if-no-files-found: ignore
- name: Upload Artifact (macOS arm64)
uses: actions/upload-artifact@v3
with:
name: R3PLAYX-mac-arm64
path: ./packages/desktop/release/*-arm64.dmg
if-no-files-found: ignore
- name: Upload Artifact (Windows)
uses: actions/upload-artifact@v3
with:
name: R3PLAYX-win
path: ./packages/desktop/release/*x64-Setup.exe
if-no-files-found: ignore
- name: Upload Artifact (Linux)
uses: actions/upload-artifact@v3
with:
name: R3PLAYX-linux
path: ./packages/desktop/release/*.AppImage
if-no-files-found: ignore