PSP
This commit is contained in:
@@ -43,19 +43,23 @@ jobs:
|
||||
run: cmake -S . -B build -DDUSK_TARGET_SYSTEM=psp
|
||||
- name: Build
|
||||
run: cmake --build build -- -j$(nproc)
|
||||
- name: Move EBOOT.PBP to Dusk subfolder
|
||||
run: |
|
||||
mkdir -p build/Dusk
|
||||
mv build/EBOOT.PBP build/Dusk/EBOOT.PBP
|
||||
- name: List build output
|
||||
run: ls -lh build
|
||||
run: ls -lh build/Dusk
|
||||
- name: Upload PSP binary
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: eboot-psp
|
||||
path: build/EBOOT.PBP
|
||||
path: build/Dusk/EBOOT.PBP
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- build-linux
|
||||
# - build-psp
|
||||
- build-psp
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
@@ -64,11 +68,11 @@ jobs:
|
||||
with:
|
||||
name: dusk-linux
|
||||
path: ./release-assets
|
||||
# - name: Download PSP binary
|
||||
# uses: actions/download-artifact@v3
|
||||
# with:
|
||||
# name: eboot-psp
|
||||
# path: ./release-assets
|
||||
- name: Download PSP binary
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: eboot-psp
|
||||
path: ./release-assets
|
||||
- name: Create Gitea Release
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
@@ -80,4 +84,14 @@ jobs:
|
||||
# Create release
|
||||
RELEASE_RESPONSE=$(curl -s -X POST "$GITEA_URL/api/v1/repos/${{ github.repository }}/releases" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: token $GITEA_TOKEN" \
|
||||
-H "Authorization: token $GITEA_TOKEN" \
|
||||
-d "{\"tag_name\": \"$TAG_NAME\", \"name\": \"$RELEASE_NAME\", \"body\": \"$RELEASE_BODY\"}")
|
||||
echo "Release response: $RELEASE_RESPONSE"
|
||||
# Upload assets
|
||||
for asset in ./release-assets/*; do
|
||||
echo "Uploading asset: $asset"
|
||||
curl -s -X POST "$GITEA_URL/api/v1/repos/${{ github.repository }}/releases/tags/$TAG_NAME/assets?name=$(basename $asset)" \
|
||||
-H "Authorization: token $GITEA_TOKEN" \
|
||||
-F "file=@$asset"
|
||||
done
|
||||
echo "Release $TAG_NAME created and assets uploaded."
|
||||
Reference in New Issue
Block a user