From 39725f9828604d9880b2fb1f13a0187235fc6a21 Mon Sep 17 00:00:00 2001 From: hstyi Date: Sat, 15 Feb 2025 13:26:15 +0800 Subject: [PATCH] chore: linux-aarch64.yml --- .github/workflows/linux-aarch64.yml | 47 +++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/linux-aarch64.yml diff --git a/.github/workflows/linux-aarch64.yml b/.github/workflows/linux-aarch64.yml new file mode 100644 index 0000000..f803bd3 --- /dev/null +++ b/.github/workflows/linux-aarch64.yml @@ -0,0 +1,47 @@ +name: Linux aarch64 + +on: [ push, pull_request ] + +jobs: + build: + runs-on: ubuntu-24.04-arm + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + # download jdk + - run: wget -q -O $RUNNER_TEMP/java_package.tar.gz https://cache-redirector.jetbrains.com/intellij-jbr/jbrsdk-21.0.6-linux-aarch64-b825.69.tar.gz + + # appimagetool + - run: sudo apt install libfuse2 + + # install jdk + - name: Installing Java + uses: actions/setup-java@v4 + with: + distribution: 'jdkfile' + jdkFile: ${{ runner.temp }}/java_package.tar.gz + java-version: '21.0.6' + architecture: aarch64 + + - uses: actions/cache@v4 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-${{ runner.arch }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-${{ runner.arch }}-gradle- + + # dist + - run: | + ./gradlew dist --no-daemon + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: termora-linux-aarch64 + path: | + build/distributions/*.tar.gz + build/distributions/*.AppImage