Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build actions for: #83

Merged
merged 2 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Beta builds for PSP, DEB, Miyoo

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
env:
PSPDEV: ${{ github.workspace }}/pspdev

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

- name: Install required libraries
run: |
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -y gcc-multilib g++-multilib libsdl1.2-dev:i386 libasound2-plugins:i386 libjack-dev:i386 build-essential cmake pkgconf libusb-0.1-4 libgpgme11 libarchive-tools fakeroot libncurses-dev

- name: Set up PSP dev kit
run: |
echo "$PSPDEV/bin" >> $GITHUB_PATH
git clone https://github.com/djdiskmachine/pspdev

- name: Install Miyoo Mini toolchain
run: |
wget -O /tmp/miyoomini-toolchain.tar.xz https://github.com/djdiskmachine/miyoomini-toolchain-buildroot/releases/download/1.0.0/miyoomini-toolchain.tar.xz
mkdir /opt/miyoomini-toolchain
tar -xvf /tmp/miyoomini-toolchain.tar.xz -C /opt/miyoomini-toolchain --strip-components=1

- name: Build Miyoo Mini
run: |
cd projects
make PLATFORM=MIYOO

- name: Build DEB
run: |
cd projects
make PLATFORM=DEB

- name: Build PSP
run: |
cd projects
make PLATFORM=PSP


- name: Package artifacts
run: ./resources/packaging/lgpt_package.sh

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: beta-${{ github.sha }}
path: |
./projects/*.zip

22 changes: 22 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Check build viability

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

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

- name: Install required libraries
run: |
dpkg --add-architecture i386
apt update
apt install -y git make gcc-multilib g++-multilib libsdl1.2-dev:i386 libasound2-plugins:i386 libjack-dev:i386

- name: Build DEB
run: |
cd projects
make PLATFORM=DEB
84 changes: 84 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Release build

on: # Make a release build
workflow_dispatch:

jobs:
build-windows:
runs-on: windows-latest

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

- name: Install DirectX SDK and Visual Studio 2019 Build Tools
run: choco install -y directx-sdk visualstudio2019buildtools --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools"
shell: powershell

- name: Set DirectX SDK environment variable
run: |
[System.Environment]::SetEnvironmentVariable('DXSDK_DIR', 'C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)', [System.EnvironmentVariableTarget]::Machine)
shell: powershell

- name: Setup MSBuild path
uses: microsoft/setup-msbuild@v1

- name: Build solution
run: |
cd projects
& "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\VsDevCmd.bat" &&
msbuild lgpt.sln /Upgrade
msbuild lgpt.sln /p:Configuration=Release /p:Platform=Win32

build:
runs-on: ubuntu-latest
env:
PSPDEV: ${{ github.workspace }}/pspdev

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

- name: Install required libraries
run: |
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -y gcc-multilib g++-multilib libsdl1.2-dev:i386 libasound2-plugins:i386 libjack-dev:i386 build-essential cmake pkgconf libusb-0.1-4 libgpgme11 libarchive-tools fakeroot libncurses-dev

- name: Set up PSP dev kit
run: |
echo "$PSPDEV/bin" >> $GITHUB_PATH
git clone https://github.com/djdiskmachine/pspdev

- name: Install Miyoo Mini toolchain
run: |
wget -O /tmp/miyoomini-toolchain.tar.xz https://github.com/djdiskmachine/miyoomini-toolchain-buildroot/releases/download/1.0.0/miyoomini-toolchain.tar.xz
mkdir /opt/miyoomini-toolchain
tar -xvf /tmp/miyoomini-toolchain.tar.xz -C /opt/miyoomini-toolchain --strip-components=1

- name: Build Miyoo Mini
run: |
cd projects
make PLATFORM=MIYOO

- name: Build DEB
run: |
cd projects
make PLATFORM=DEB

- name: Build PSP
run: |
cd projects
make PLATFORM=PSP


- name: Package artifacts
run: ./resources/packaging/lgpt_package.sh

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: release-${{ github.sha }}
path: |
./projects/*.zip

Loading