Skip to content

Build dev Linux-glibc amd64 binary #2

Build dev Linux-glibc amd64 binary

Build dev Linux-glibc amd64 binary #2

name: Build dev Linux-glibc amd64 binary
on:
workflow_dispatch:
jobs:
build-dev-linux-glibc-amd64:
name: Build dev amd64 Linux glibc binary
runs-on: ubuntu-20.04
env:
BUILD_ARCH: x64
BUILD_LOGLEVEL: verbose
BUILD_STATIC: '--partly-static'
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
- run: |
sudo apt-get update
sudo apt-get install -y gcc-10 g++-10
- run: npm install --production --ignore-scripts
- run: (cd nexe && npm install --production)
- run: (cd nexe && node build)
env:
CC: gcc-10
CXX: g++-10
- 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@v3
with:
path: ./parpar.xz
name: parpar-${{ github.ref_name }}-linux-glibc-amd64.xz
retention-days: 5