Skip to content

Commit

Permalink
Adding PSP compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtrujy committed Feb 9, 2023
1 parent 7b29977 commit dee26e6
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 6 deletions.
40 changes: 35 additions & 5 deletions .github/workflows/psp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,19 @@ jobs:
- name: Install build dependencies
run: |
apk update
apk add cmake
apk add cmake git
# To be removed once the fjtrujy fork is part of PSPDEV
- name: Install fjtrujy SDL2 fork
run: |
git clone -b pspRefactorRender https://github.com/fjtrujy/SDL.git
cd SDL
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_TOOLCHAIN_FILE=$PSPDEV/psp/share/pspdev.cmake -DCMAKE_INSTALL_PREFIX=$PSPDEV/psp \
-DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=OFF -DSDL_TESTS=OFF ..
make -j $(getconf _NPROCESSORS_ONLN)
make -j $(getconf _NPROCESSORS_ONLN) install
- name: Configure project
run: |
Expand All @@ -32,13 +44,31 @@ jobs:

- name: Move files together
run: |
mkdir output
cp build/EBOOT.PBP build/PARAM.SFO output
cp -r export/data output
mkdir ccleste
cp build/EBOOT.PBP build/PARAM.SFO ccleste
cp -r export/data ccleste
- name: Upload application
uses: actions/upload-artifact@v3
with:
name: PSP_build
path: output/*
path: ccleste/*
if-no-files-found: error

- name: Extract tag name
if: startsWith(github.ref, 'refs/tags/')
id: tag
run: |
echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
- name: Prepare release
if: startsWith(github.ref, 'refs/tags/')
run: |
tar -zcvf ccleste_psp-${{ steps.tag.outputs.VERSION }}.tar.gz ccleste
- name: Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: ccleste_psp-${{ steps.tag.outputs.VERSION }}.tar.gz
tag_name: ${{ steps.tag.outputs.VERSION }}
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ if(PSP)
create_pbp_file(
TARGET ${PROJECT_TITLE}
ICON_PATH "${CMAKE_CURRENT_SOURCE_DIR}/icon.png"
BACKGROUND_PATH NULL
BACKGROUND_PATH "${CMAKE_CURRENT_SOURCE_DIR}/psp_bg.png"
PREVIEW_PATH NULL
TITLE ${PROJECT_TITLE})
endif()
Expand Down
Binary file added psp_bg.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dee26e6

Please sign in to comment.