Skip to content

Commit

Permalink
Adding arm for linux maybe?
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Jul 20, 2024
1 parent 0420ce0 commit 2a60cc2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
# test
name: Publish package to GitHub Packages
on:
push:

name: Test package
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
branches:
- '*'
jobs:
linuxARM:
runs-on: ubuntu-24-arm
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Build
run: bash package-linux_x64.sh
- name: Upload math result for job Linux ARM
uses: actions/upload-artifact@v3
with:
name: linux-lib
path: release/*
linux:
runs-on: ubuntu-20.04
steps:
Expand Down
7 changes: 7 additions & 0 deletions package-linux_x64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

export ARCH=x86_64
JVM=zulu17.50.19-ca-fx-jdk17.0.11-linux_x64
if [[ $(uname -m) == 'aarch64' ]]; then
ARCH=arm64
echo "ARM linux detected https://cdn.azul.com/zulu/bin/zulu17.52.17-ca-fx-jdk17.0.12-linux_aarch64.tar.gz"
JVM=zulu17.52.17-ca-fx-jdk17.0.12-linux_aarch64
else
echo "x86 Linux detected https://cdn.azul.com/zulu/bin/zulu17.50.19-ca-fx-jdk17.0.11-linux_x64.tar.gz"

set -e
ZIP=$JVM.tar.gz
export JAVA_HOME=$HOME/bin/java17/
Expand Down

0 comments on commit 2a60cc2

Please sign in to comment.