Skip to content

Commit

Permalink
gnu
Browse files Browse the repository at this point in the history
  • Loading branch information
SOVLOOKUP committed Oct 13, 2023
1 parent 53fc6bd commit 9bd99af
Showing 1 changed file with 35 additions and 5 deletions.
40 changes: 35 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,11 @@ jobs:
name: bindings-${{ matrix.settings.target }}
path: addon/${{ env.APP_NAME }}.*.node
if-no-files-found: error
build-arm:
build-arm-musl:
strategy:
fail-fast: false
matrix:
settings:
- target: aarch64-unknown-linux-gnu
arch: aarch64
- target: aarch64-unknown-linux-musl
arch: aarch64
name: ${{ matrix.settings.target }}
Expand All @@ -140,7 +138,7 @@ jobs:
run: |-
set -e &&
apk update &&
apk add curl git gcc g++ make cmake gfortran libffi-dev openssl-dev autoconf automake libtool libuuid libevdev-dev xdo xdotool-dev libc-dev pkgconfig glib-dev gtk+3.0-dev pango-dev cairo-dev fontconfig-dev nodejs npm &&
apk add curl libuuid libevdev-dev xdo xdotool-dev libc-dev pkgconfig glib-dev gtk+3.0-dev pango-dev cairo-dev fontconfig-dev nodejs npm &&
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh /dev/stdin -y &&
source $HOME/.cargo/env &&
rustup target add ${{ matrix.settings.target }} &&
Expand All @@ -153,6 +151,37 @@ jobs:
name: bindings-${{ matrix.settings.target }}
path: addon/${{ env.APP_NAME }}.*.node
if-no-files-found: error
build-arm-gnu:
name: aarch64-unknown-linux-gnu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: uraimo/run-on-arch-action@v2
name: Build artifact
with:
arch: aarch64
distro: ubuntu_latest
githubToken: ${{ github.token }}
dockerRunArgs: |
--volume "${PWD}:/addon"
install: |
set -e &&
sudo apt-get update &&
sudo apt-get install nodejs npm libxdo-dev uuid-dev libc-dev pkg-config libglib2.0-dev libgtk-3-dev libgtk2.0-dev libpango1.0-dev libcairo2-dev libfontconfig1-dev -y &&
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh /dev/stdin -y &&
source $HOME/.cargo/env &&
rustup target add aarch64-unknown-linux-gnu
run: |
cd /addon &&
npm install &&
PKG_CONFIG_SYSROOT_DIR=/ CARGO_BUILD_TARGET=aarch64-unknown-linux-gnu npm run build &&
strip *.node
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: bindings-aarch64-unknown-linux-gnu
path: addon/${{ env.APP_NAME }}.*.node
if-no-files-found: error
universal-macOS:
name: Build universal macOS binary
needs:
Expand Down Expand Up @@ -190,7 +219,8 @@ jobs:
runs-on: ubuntu-latest
needs:
- universal-macOS
- build-arm
- build-arm-musl
- build-arm-gnu
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
Expand Down

0 comments on commit 9bd99af

Please sign in to comment.