diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 04e23855..85dc35f8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -127,6 +127,52 @@ jobs: tag_name: ${{ steps.extract_tag.outputs.tag_name }} files: ./projects/*.zip + build-aarch64: + runs-on: ubuntu-26.04-arm + container: + image: monkeyx/retro_builder:arm64 + steps: + - name: Checkout repository + uses: actions/checkout@v4.1.7 + + - name: Install required libraries + run: | + wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null + apt update + apt upgrade -y + apt install -y make pkgconf libsdl2-dev libasound2 libasound2-dev python3-pil librtmidi-dev unzip zip curl jq + env: + DEBIAN_FRONTEND: "noninteractive" + + - name: Build AARCH64 + working-directory: projects + run: | + make PLATFORM=X64 + mv lgpt.x64 lgpt.aarch64 + + - name: Package build + working-directory: projects + run: | + TAG=$(curl "https://api.github.com/repos/djdiskmachine/lgpt-resources/tags" | jq -r '.[0].name') + curl -L -o lgpt-resources.zip https://github.com/djdiskmachine/lgpt-resources/archive/refs/tags/${TAG}.zip + unzip lgpt-resources.zip + mv lgpt-resources-${TAG}/*/ ./resources/packaging + rm -rf lgpt-resources* + ./resources/packaging/lgpt_package.sh + + - name: Extract Git tag name + id: extract_tag + run: echo "tag_name=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT + env: + GITHUB_REF: ${{ github.ref }} + + - name: Upload build release + uses: softprops/action-gh-release@v2.4.2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + tag_name: ${{ steps.extract_tag.outputs.tag_name }} + files: ./projects/*.zip + build-x64: runs-on: ubuntu-latest steps: diff --git a/README.md b/README.md index b03e221e..85a8c1d5 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ Recommended reading to get you started: |-------------|---------------|--------------|------------|--------------------------------------| | PSP | NO | NO | YES | [See notes](projects/resources/PSP/INSTALL_HOW_TO.txt) | | DEB | YES | YES | YES | | +| AARCH64 | YES | YES | YES | | | X64 | YES | YES | MAYBE | | | X86 | YES | YES | YES | | | STEAM | YES | YES | MAYBE | | diff --git a/projects/resources/AARCH64/config.xml b/projects/resources/AARCH64/config.xml new file mode 100644 index 00000000..09ac04f0 --- /dev/null +++ b/projects/resources/AARCH64/config.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/projects/resources/AARCH64/mapping.xml b/projects/resources/AARCH64/mapping.xml new file mode 100644 index 00000000..f43e0c90 --- /dev/null +++ b/projects/resources/AARCH64/mapping.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/projects/resources/packaging/lgpt_package.sh b/projects/resources/packaging/lgpt_package.sh index 968f7731..bf10ccf7 100755 --- a/projects/resources/packaging/lgpt_package.sh +++ b/projects/resources/packaging/lgpt_package.sh @@ -43,6 +43,7 @@ collect_resources() { #1PLATFORM #2lgpt.*-exe zip -9 ../../$PACKAGE -jq $CONTENTS && cd - } +collect_resources AARCH64 lgpt.aarch64 collect_resources PSP EBOOT.PBP collect_resources DEB lgpt.deb-exe collect_resources X64 lgpt.x64