-
Notifications
You must be signed in to change notification settings - Fork 28
37 lines (36 loc) · 1.08 KB
/
build-linux.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
# .github/workflows/build-linux.yml
name: Build Linux Releases
on:
workflow_dispatch:
jobs:
build-linux-x64:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Install required packages
run: sudo apt-get install -y rpm
- name: Github checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: get-package-version
id: package-version
uses: beaconbrigade/[email protected]
- name: Install required packages
run: npm install -g node-gyp
- name: Install Dependencies
run: npm i
- name: Build script
run: make linux-x64
- name: List packages
uses: mathiasvr/[email protected]
id: packagelist
with:
run: node ./build/list_packages.mjs
- name: Publish Release
run: gh release upload v${{ steps.package-version.outputs.version}} ${{ steps.packagelist.outputs.stdout }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}