-
Notifications
You must be signed in to change notification settings - Fork 478
51 lines (43 loc) · 1.17 KB
/
build.yml
File metadata and controls
51 lines (43 loc) · 1.17 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
name: Build/release
on:
push:
tags:
- "*"
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
arch: [x64, arm64]
max-parallel: 3
steps:
- name: Check out Git repository
uses: actions/checkout@v1
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Linux Lib
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install libx11-dev libxext-dev libxtst-dev libxrender-dev libxmu-dev libxmuu-dev rpm
- name: ${{ matrix.os }} ${{ matrix.arch }} build
env:
M_ARCH: ${{matrix.arch}}
USE_HARD_LINKS: false
run: |
npm install -g pnpm@10.0.0
pnpm install
pnpm run dist
- name: release
uses: softprops/action-gh-release@v2
with:
files: "build/*"
draft: false
prerelease: true
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}