Skip to content

Commit

Permalink
accommodate for recent changes to sdk file system layout
Browse files Browse the repository at this point in the history
  • Loading branch information
john-tornblom committed Apr 27, 2024
1 parent 4fa783f commit f9d5050
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 19 deletions.
32 changes: 14 additions & 18 deletions .github/workflows/payload.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build payload
name: CI

on:
push:
Expand All @@ -20,33 +20,29 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v3

- name: Checkout
- name: Checkout SDK
uses: actions/checkout@v3
with:
repository: john-tornblom/ps5-payload-sdk
path: ps5-payload-sdk
repository: ps5-payload-dev/sdk
path: sdk

- name: Setup SDK
working-directory: ps5-payload-sdk
working-directory: sdk
run: |
sudo apt update
sudo apt install wget build-essential clang clang-15 lld lld-15
make
make DESTDIR=${{ runner.tool_cache }}/ps5-payload-sdk install
sudo apt install clang-15 lld-15
make DESTDIR=${{ runner.tool_cache }}/ps5-payload-sdk clean install
echo PS5_PAYLOAD_SDK=${{ runner.tool_cache }}/ps5-payload-sdk >> $GITHUB_ENV
echo PS5_HOST=ps5 >> $GITHUB_ENV
echo PS5_PORT=9020 >> $GITHUB_ENV
- name: Build
run: |
make clean all
- name: Checkout Payload
uses: actions/checkout@v3

- name: Build Payload
run: make clean all

- name: Upload payload
- name: Upload Payload
uses: actions/upload-artifact@v3
with:
name: Payload
path: ./ftpsrv.elf
path: ./*.elf
if-no-files-found: error
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ PS5_HOST ?= ps5
PS5_PORT ?= 9021

ifdef PS5_PAYLOAD_SDK
include $(PS5_PAYLOAD_SDK)/make/toolchain.mk
include $(PS5_PAYLOAD_SDK)/toolchain/prospero.mk
else
$(error PS5_PAYLOAD_SDK is undefined)
endif
Expand Down

0 comments on commit f9d5050

Please sign in to comment.