-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathbuild-dev-linux-static-amd64.yml
More file actions
41 lines (40 loc) · 1.63 KB
/
build-dev-linux-static-amd64.yml
File metadata and controls
41 lines (40 loc) · 1.63 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
name: Build dev Linux-static amd64 binary
on:
workflow_dispatch:
jobs:
build-dev-linux-static-amd64:
name: Build dev amd64 Linux static binary
runs-on: ubuntu-22.04
env:
BUILD_ARCH: x64
BUILD_LOGLEVEL: verbose
BUILD_STATIC: '--fully-static'
BUILD_NO_LTO: 1 # the MUSL setup doesn't support linker plugins
steps:
- uses: actions/setup-python@v4
id: py
with:
python-version: '3.9' # workaround "cannot import name 'Mapping' from 'collections'" error
- uses: actions/checkout@v4
- name: Setup musl
run: |
curl http://musl.cc/x86_64-linux-musl-native.tgz | tar zxf -
echo "CC=`pwd`/x86_64-linux-musl-native/bin/x86_64-linux-musl-cc" >> $GITHUB_ENV
echo "CXX=`pwd`/x86_64-linux-musl-native/bin/x86_64-linux-musl-c++" >> $GITHUB_ENV
- run: npm install --production --ignore-scripts
- run: npm install --production
working-directory: nexe
# diagnose weird failure between initial message and download message
- run: sed -i '/return tryInvokeMiddleware/i try{console.log("Invoke middleware", mw.name);}catch(x){}' node_modules/app-builder/lib/compose.js
working-directory: nexe
continue-on-error: true
- run: node build
working-directory: nexe
- run: nexe/parpar --version
- run: nexe/parpar -r1 -s1M -onexe/test.par2 nexe/parpar
- run: xz -9e --x86 --lzma2 nexe/parpar -c > parpar.xz
- uses: actions/upload-artifact@v4
with:
path: ./parpar.xz
name: parpar-${{ github.ref_name }}-linux-static-amd64.xz
retention-days: 5