Skip to content

Commit 0c8143d

Browse files
committed
ci: add ps5 target
1 parent 0ba0fc3 commit 0c8143d

1 file changed

Lines changed: 22 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,18 @@ jobs:
2626
- name: Install dependencies
2727
run: |
2828
sudo apt update
29-
sudo apt install build-essential wget libcurl4-openssl-dev mingw-w64 mingw-w64-x86-64-dev
29+
sudo apt install build-essential clang-15 lld-15 wget libcurl4-openssl-dev mingw-w64 mingw-w64-x86-64-dev
3030
31-
- name: Download curl for Windows
32-
run: wget https://curl.se/windows/dl-8.8.0_3/curl-8.8.0_3-win64-mingw.zip -O curl-win64-mingw.zip
31+
- name: Download cURL for Windows
32+
run: wget https://curl.se/windows/dl-8.8.0_3/curl-8.8.0_3-win64-mingw.zip
3333

3434
- name: Extract curl for Windows
35-
run: unzip curl-win64-mingw.zip
35+
run: unzip curl-8.8.0_3-win64-mingw.zip
36+
37+
- name: Install toolchain for PS5
38+
run: |
39+
wget https://github.com/ps5-payload-dev/pacbrew-repo/releases/download/v0.4/ps5-payload-dev.tar.gz
40+
sudo tar xf ps5-payload-dev.tar.gz -C /
3641
3742
- name: Build Linux
3843
run: |
@@ -43,6 +48,11 @@ jobs:
4348
export CURL_PATH=curl-8.8.0_3-win64-mingw
4449
make -f Makefile.win
4550
51+
- name: Build PS5
52+
run: |
53+
export PS5_PAYLOAD_SDK=/opt/pacbrew/ps5/payload-sdk
54+
make -f Makefile.ps5
55+
4656
- name: Prepare artifacts
4757
run: |
4858
mkdir fetchpkg-win64
@@ -61,4 +71,11 @@ jobs:
6171
with:
6272
name: Win64
6373
path: fetchpkg-win64/
64-
if-no-files-found: error
74+
if-no-files-found: error
75+
76+
- name: Upload PS5
77+
uses: actions/upload-artifact@v3
78+
with:
79+
name: PS5
80+
path: ./fetchpkg.elf
81+
if-no-files-found: error

0 commit comments

Comments
 (0)