Skip to content

Commit

Permalink
Try Github Actions build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
animetosho committed Jan 24, 2024
1 parent 0e57b66 commit 54c70c2
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 6 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/build-dev-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Build dev Linux binary
on:
workflow_dispatch:

jobs:
build-dev-linux:
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-linux-musl
arch: x64
xz_bcj: --x86
name: amd64
- target: aarch64-linux-musl
arch: arm64
xz_bcj:
name: aarch64
# disabled due to compiler crashing
#- target: armv7l-linux-musleabihf
# arch: arm
# xz_bcj: --arm
# name: armhf
name: Build ${{ matrix.name }} dev Linux binary
runs-on: ubuntu-latest
env:
BUILD_ARCH: ${{ matrix.arch }}
BUILD_LOGLEVEL: verbose
BUILD_CONFIGURE: '--with-arm-float-abi=hard --with-arm-fpu=vfpv3-d16'
steps:
- uses: actions/checkout@v3
- uses: Lesmiscore/musl-cross-compilers@jockie
id: musl
with:
target: ${{ matrix.target }}
- name: Install i386 dev
run: |
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -y libstdc++-$(c++ -dumpversion)-dev:i386 libc6-dev:i386 g++-multilib
if: ${{ matrix.arch == 'arm' }}
- run: npm install --production
- run: (cd nexe && npm install --production)
- run: (cd nexe && node build)
env:
CC: ${{ steps.musl.outputs.path }}/${{ matrix.target }}-cc
CXX: ${{ steps.musl.outputs.path }}/${{ matrix.target }}-c++
CC_host: cc
CXX_host: c++
- run: ${{ steps.musl.outputs.path }}/${{ matrix.target }}-strip nexe/nyuu
- run: tar --group=nobody --owner=nobody -cf - -C nexe nyuu ../config-sample.json | xz -9e ${{ matrix.xz_bcj }} --lzma2 > nyuu.txz
- uses: actions/upload-artifact@v3
with:
path: ./nyuu.txz
name: nyuu-${{ github.ref_name }}-linux-${{ matrix.name }}.7z
retention-days: 5
5 changes: 4 additions & 1 deletion .github/workflows/build-dev-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ on:
workflow_dispatch:

jobs:
build-mac:
build-dev-mac:
name: Build x64 MacOS binary
runs-on: macos-latest
env:
BUILD_ARCH: x64
BUILD_LOGLEVEL: verbose
steps:
- uses: actions/checkout@v3
- uses: MatteoH2O1999/setup-python@v3
with:
python-version: '3.11'
- run: npm install --production
- run: (cd nexe && npm install --production)
- run: (cd nexe && node build)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-dev-win32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
workflow_dispatch:

jobs:
build-win32:
build-dev-win32:
name: Build x86 Windows binary
runs-on: windows-2019
env:
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:

build-linux:
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-linux-musl
Expand Down Expand Up @@ -68,10 +69,10 @@ jobs:
target: ${{ matrix.target }}
- name: Install i386 dev
run: |
dpkg --add-architecture i386
apt update
apt install -y libstdc++-$(c++ -dumpversion)-dev:i386 libc6-dev:i386 g++-multilib
if: ${{ matrix.arch }} == 'arm'
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -y libstdc++-$(c++ -dumpversion)-dev:i386 libc6-dev:i386 g++-multilib
if: ${{ matrix.arch == 'arm' }}
- name: Get release
id: get_release
uses: bruceadams/[email protected]
Expand Down Expand Up @@ -104,6 +105,9 @@ jobs:
BUILD_LOGLEVEL: verbose
steps:
- uses: actions/checkout@v3
- uses: MatteoH2O1999/setup-python@v3
with:
python-version: '3.11'
- name: Get release
id: get_release
uses: bruceadams/[email protected]
Expand Down

0 comments on commit 54c70c2

Please sign in to comment.