Skip to content

Commit

Permalink
Merge branch 'master' into 20240823-font
Browse files Browse the repository at this point in the history
  • Loading branch information
djdiskmachine authored Sep 10, 2024
2 parents 12f3314 + afd7b9a commit 187702d
Show file tree
Hide file tree
Showing 109 changed files with 6,093 additions and 995 deletions.
218 changes: 209 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
pip install Pillow
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -y make gcc-multilib g++-multilib libsdl1.2-dev:i386 libasound2-plugins:i386 libjack-dev:i386
sudo apt install -y make pkgconf gcc-multilib g++-multilib libsdl1.2-dev:i386 libasound2-plugins:i386 libjack-dev:i386
- name: Build DEB
working-directory: projects
Expand Down Expand Up @@ -106,6 +106,85 @@ jobs:
tag_name: ${{ steps.extract_tag.outputs.tag_name }}
files: ./projects/*.zip

build-x86:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install required libraries
run: |
python -m pip install --upgrade pip
pip install Pillow
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -y make pkgconf gcc-multilib g++-multilib libsdl2-dev:i386 libasound2-plugins:i386 libjack-dev:i386
- name: Build X86
working-directory: projects
run: make PLATFORM=X86

- name: Package build
working-directory: projects
run: |
curl -L -o lgpt-resources.zip https://github.com/djdiskmachine/lgpt-resources/archive/refs/tags/1.0.zip
unzip lgpt-resources.zip
mv lgpt-resources-1.0/*/ ./resources/packaging
rm -rf lgpt-resources*
./resources/packaging/lgpt_package.sh
- name: Extract Git tag name
id: extract_tag
run: echo "::set-output name=tag_name::${GITHUB_REF#refs/tags/}"
env:
GITHUB_REF: ${{ github.ref }}

- name: Upload build release
uses: softprops/action-gh-release@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ steps.extract_tag.outputs.tag_name }}
files: ./projects/*.zip

build-x64:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install required libraries
run: |
python -m pip install --upgrade pip
pip install Pillow
sudo apt update
sudo apt install -y make pkgconf libsdl2-dev libasound2-plugins libjack-dev
- name: Build X64
working-directory: projects
run: make PLATFORM=X64

- name: Package build
working-directory: projects
run: |
curl -L -o lgpt-resources.zip https://github.com/djdiskmachine/lgpt-resources/archive/refs/tags/1.0.zip
unzip lgpt-resources.zip
mv lgpt-resources-1.0/*/ ./resources/packaging
rm -rf lgpt-resources*
./resources/packaging/lgpt_package.sh
- name: Extract Git tag name
id: extract_tag
run: echo "::set-output name=tag_name::${GITHUB_REF#refs/tags/}"
env:
GITHUB_REF: ${{ github.ref }}

- name: Upload build release
uses: softprops/action-gh-release@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ steps.extract_tag.outputs.tag_name }}
files: ./projects/*.zip

build-psp:
runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -232,7 +311,7 @@ jobs:
tag_name: ${{ steps.extract_tag.outputs.tag_name }}
files: ./projects/*.zip

build-rg35xx:
build-garlic:
runs-on: ubuntu-latest

steps:
Expand All @@ -241,18 +320,139 @@ jobs:

- name: Clone and build LGPT
run: |
ln -s /home/runner/work/LittleGPTracker/LittleGPTracker workspace
docker run -d --name rg35xx-container -v "$(pwd)/workspace:/root/workspace" aveferrum/rg35xx-toolchain sleep infinity
docker exec rg35xx-container bash -c "
apt update && apt install -y python3 python3-pillow
git clone https://github.com/djdiskmachine/LittleGPTracker.git
cd LittleGPTracker/projects
make PLATFORM=RG35XX
cd projects
make PLATFORM=GARLIC
"
sudo chmod -R 777 ./workspace/LittleGPTracker/projects
sudo chown -R root:root ./workspace/LittleGPTracker/projects
sudo chmod -R 777 ./workspace/projects
sudo chown -R root:root ./workspace/projects
- name: Package build
working-directory: ./workspace/LittleGPTracker/projects
working-directory: ./workspace/projects
run: |
curl -L -o lgpt-resources.zip https://github.com/djdiskmachine/lgpt-resources/archive/refs/tags/1.0.zip
unzip lgpt-resources.zip
mv lgpt-resources-1.0/*/ ./resources/packaging
rm -rf lgpt-resources*
./resources/packaging/lgpt_package.sh
- name: Extract Git tag name
id: extract_tag
run: echo "::set-output name=tag_name::${GITHUB_REF#refs/tags/}"
env:
GITHUB_REF: ${{ github.ref }}

- name: Upload build release
uses: softprops/action-gh-release@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ steps.extract_tag.outputs.tag_name }}
files: ./workspace/projects/*.zip

build-garlicplus:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Garlic Plus toolchain
run: |
python -m pip install --upgrade pip
pip install Pillow
wget -O /tmp/rg35xxplus-toolchain.tar.xz https://github.com/simotek/union-rg35xxplus-toolchain/releases/download/20240830/rg35xxplus-toolchain.tar.xz
mkdir /opt/rg35xxplus-toolchain
tar -xvf /tmp/rg35xxplus-toolchain.tar.xz -C /opt/rg35xxplus-toolchain --strip-components=1
- name: Build Garlic Plus
working-directory: projects
run: make PLATFORM=GARLICPLUS

- name: Package build
working-directory: projects
run: |
curl -L -o lgpt-resources.zip https://github.com/djdiskmachine/lgpt-resources/archive/refs/tags/1.0.zip
unzip lgpt-resources.zip
mv lgpt-resources-1.0/*/ ./resources/packaging
rm -rf lgpt-resources*
./resources/packaging/lgpt_package.sh
- name: Extract Git tag name
id: extract_tag
run: echo "::set-output name=tag_name::${GITHUB_REF#refs/tags/}"
env:
GITHUB_REF: ${{ github.ref }}

- name: Upload build release
uses: softprops/action-gh-release@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ steps.extract_tag.outputs.tag_name }}
files: ./projects/*.zip

build-rg35xxplus:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install rg35xx Stock Toolchain
run: |
python -m pip install --upgrade pip
pip install Pillow
wget -O /tmp/rg35xx-plus-aarch64-SDL2-SDK-0.1.0.tar.xz https://github.com/simotek/rg35xx-plus-aarch64-SDL2-SDK/releases/download/0.1.0/rg35xx-plus-aarch64-SDL2-SDK-0.1.0.tar.xz
mkdir /opt/rg35xx-plus-aarch64-SDL2-SDK-0.1.0
tar -xvf /tmp/rg35xx-plus-aarch64-SDL2-SDK-0.1.0.tar.xz -C /opt/rg35xx-plus-aarch64-SDL2-SDK-0.1.0 --strip-components=1
- name: Build rg35xx Stock
working-directory: projects
run: make PLATFORM=RG35XXPLUS

- name: Package build
working-directory: projects
run: |
curl -L -o lgpt-resources.zip https://github.com/djdiskmachine/lgpt-resources/archive/refs/tags/1.0.zip
unzip lgpt-resources.zip
mv lgpt-resources-1.0/*/ ./resources/packaging
rm -rf lgpt-resources*
./resources/packaging/lgpt_package.sh
- name: Extract Git tag name
id: extract_tag
run: echo "::set-output name=tag_name::${GITHUB_REF#refs/tags/}"
env:
GITHUB_REF: ${{ github.ref }}

- name: Upload build release
uses: softprops/action-gh-release@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ steps.extract_tag.outputs.tag_name }}
files: ./projects/*.zip

macos:
runs-on: macos-13
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install required libraries
run: |
wget https://www.libsdl.org/release/SDL2-2.0.14.dmg
hdiutil attach SDL2-2.0.14.dmg
sudo cp -R /Volumes/SDL2/SDL2.framework /Library/Frameworks/
- name: Build Xcode project
run: |
xcodebuild ONLY_ACTIVE_ARCH=NO -project projects/lgpt64.xcodeproj -scheme LittleGPTracker -configuration Release build
cp -R bin/LittleGPTracker.app projects/
- name: Package build
working-directory: projects
run: |
curl -L -o lgpt-resources.zip https://github.com/djdiskmachine/lgpt-resources/archive/refs/tags/1.0.zip
unzip lgpt-resources.zip
Expand All @@ -271,4 +471,4 @@ jobs:
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ steps.extract_tag.outputs.tag_name }}
files: ./workspace/LittleGPTracker/projects/*.zip
files: projects/*.zip
Loading

0 comments on commit 187702d

Please sign in to comment.