File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build libraries package
2+
3+ on : [ push, pull_request, workflow_dispatch ]
4+
5+ jobs :
6+ build_pkg :
7+ runs-on : ubuntu-22.04
8+ steps :
9+
10+ - name : Checkout
11+ uses : actions/checkout@v4
12+
13+ - name : Set env vars
14+ id : slug
15+ run : |
16+ echo "sha_name=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_ENV
17+ sudo apt install python2.7
18+
19+ # using pre-compiled sdk
20+ # to do: replace toolchain link
21+ - name : Download PSL1GHT Toolchain
22+ run : |
23+ curl -sL https://github.com/bucanero/ps3toolchain/releases/download/ubuntu-latest-fad3b5fb/ps3dev-ubuntu-latest-2020-08-31.tar.gz | tar xvz -C ./
24+ curl -sL https://github.com/ps3dev/PSL1GHT/raw/master/ppu/include/sysutil/sysutil.h -o ps3dev/ppu/include/sysutil/sysutil.h
25+ echo "PS3DEV=${GITHUB_WORKSPACE}/ps3dev" >> $GITHUB_ENV
26+ echo "PSL1GHT=${GITHUB_WORKSPACE}/ps3dev" >> $GITHUB_ENV
27+
28+ - name : Install libraries
29+ run : |
30+ sed -i.bak '8d' libraries-sudo.sh
31+ ./libraries-sudo.sh
32+
33+ - name : Build Package
34+ run : |
35+ 7z a ps3libraries.zip $PSL1GHT/portlibs/
36+
37+ - name : Push package artifact
38+ uses : actions/upload-artifact@v4
39+ with :
40+ name : ps3libraries-build_${{ env.sha_name }}
41+ path : ps3libraries.zip
42+ if-no-files-found : error
You can’t perform that action at this time.
0 commit comments