-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathbuild-dev-linux-glibc-armv7l.yml
More file actions
46 lines (45 loc) · 1.73 KB
/
build-dev-linux-glibc-armv7l.yml
File metadata and controls
46 lines (45 loc) · 1.73 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
name: Build dev Linux-glibc armv7l binary
on:
workflow_dispatch:
jobs:
build-dev-linux-glibc-armv7l:
name: Build dev armv7l Linux glibc binary
runs-on: ubuntu-20.04
env:
BUILD_ARCH: armhf
BUILD_LOGLEVEL: verbose
BUILD_STATIC: '--partly-static'
BUILD_NO_LTO: 1 # AArch32 compilers don't like mixing FPU modes with LTO [https://github.com/sabnzbd/sabctools/issues/56#issuecomment-1151994494]
steps:
- uses: actions/setup-python@v4
id: py
with:
python-version: '3.9' # workaround "cannot import name 'Mapping' from 'collections'" error
- uses: actions/checkout@v3
- uses: junelife/gha-ubuntu-cross@v6
with:
arch: 'armhf'
- uses: ryankurte/action-apt@v0.3.0
with:
arch: i386 # '-m32' switch doesn't work without this
packages: "libstdc++-$(c++ -dumpversion)-dev:i386 libc6-dev:i386"
- 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
env:
CC: arm-linux-gnueabihf-gcc
CXX: arm-linux-gnueabihf-g++
CC_host: cc
CXX_host: c++
- run: xz -9e --arm --lzma2 nexe/parpar -c > parpar.xz
- uses: actions/upload-artifact@v3
with:
path: ./parpar.xz
name: parpar-${{ github.ref_name }}-linux-glibc-armv7l.xz
retention-days: 5