-
Notifications
You must be signed in to change notification settings - Fork 22
35 lines (34 loc) · 1.23 KB
/
build-dev-win64.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
name: Build dev Win64 binary
on:
workflow_dispatch:
jobs:
build-dev-win64:
name: Build dev x64 Windows binary
runs-on: windows-2019
env:
BUILD_ARCH: x64
BUILD_LOGLEVEL: verbose
steps:
- uses: ilammy/setup-nasm@v1
- uses: MatteoH2O1999/setup-python@v1
id: py
with:
python-version: '2.7'
- uses: actions/checkout@v3
- run: npm install --production --ignore-scripts
- run: npm install --production
working-directory: nexe
# workaround issue https://github.com/nodejs/node/issues/52681#issuecomment-2076426887
- run: |
(Get-Content -Path "node_modules/nexe/lib/compiler.js" -Raw) -replace 'cwd: this.src,', 'shell: true, cwd: this.src,' | Set-Content -Path "node_modules/nexe/lib/compiler.js"
working-directory: nexe
- run: node build
working-directory: nexe
- run: nexe\parpar.exe --version
- run: nexe\parpar.exe -r1 -s1M -o nexe\test.par2 nexe\parpar.exe
- run: move nexe\parpar.exe parpar.exe && 7z a -t7z -mx=9 parpar.7z parpar.exe
- uses: actions/upload-artifact@v3
with:
path: ./parpar.7z
name: parpar-${{ github.ref_name }}-win64.7z
retention-days: 5