-
Notifications
You must be signed in to change notification settings - Fork 12
60 lines (59 loc) · 1.77 KB
/
build-windows.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
# .github/workflows/build-windows.yml
name: Build Windows Releases
on:
workflow_dispatch:
jobs:
build-win32-x64:
runs-on: windows-latest
permissions:
contents: write
steps:
- 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/package-json-version@v0.3.2
- name: Install Dependencies
run: npm i
- name: Build script
run: ./build/build.ps1
- name: List packages
uses: mathiasvr/command-output@v2.0.0
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 }}
build-win32-arm64:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- 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/package-json-version@v0.3.2
- name: Install Dependencies
run: npm i
- name: Build script
run: make win-arm64
- name: List packages
uses: mathiasvr/command-output@v2.0.0
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 }}