-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0e57b66
commit 54c70c2
Showing
4 changed files
with
69 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ jobs: | |
|
||
build-linux: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- target: x86_64-linux-musl | ||
|
@@ -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] | ||
|
@@ -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] | ||
|