Skip to content

Commit

Permalink
Replace qemu job by packaging for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Ray committed Dec 7, 2023
1 parent 7b41eab commit 3816a77
Showing 1 changed file with 4 additions and 39 deletions.
43 changes: 4 additions & 39 deletions .github/workflows/build-apps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ jobs:
- name: Build
run: npm run build:desktop

- name: Build for arm64
if: ${{ matrix.os == 'ubuntu-latest' }}
run: npm run build:desktop -- --arch=arm64

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
Expand All @@ -52,45 +56,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

desktop-aarch64:
# The host should always be Linux
runs-on: ubuntu-latest
name: Build on aarch64
steps:
- uses: actions/checkout@v3
- uses: uraimo/run-on-arch-action@v2
name: Run commands
with:
arch: aarch64
distro: ubuntu_latest
env: |
NODE_OPTIONS: "--max-old-space-size=5120"
install: |
# install deps
apt update
apt install -y libcurl4-openssl-dev git cmake build-essential libssl-dev
# Install nodejs
apt install -y ca-certificates curl gnupg
mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
apt update
apt install -y nodejs
run: |
npm -v
echo $NODE_OPTIONS
echo $(free -m)
df -h
# Build
# git config --global --add safe.directory '*'
npm ci
npm run build:desktop
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: pikatorrent-${{ matrix.os }}-aarch64
path: apps/desktop/out/make/**/*

android:
# EAS will not be able to use expo token in pull request
if: ${{ github.event_name != 'pull_request' }}
Expand Down

0 comments on commit 3816a77

Please sign in to comment.