PSP
This commit is contained in:
@@ -43,19 +43,23 @@ jobs:
|
|||||||
run: cmake -S . -B build -DDUSK_TARGET_SYSTEM=psp
|
run: cmake -S . -B build -DDUSK_TARGET_SYSTEM=psp
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build build -- -j$(nproc)
|
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
|
- name: List build output
|
||||||
run: ls -lh build
|
run: ls -lh build/Dusk
|
||||||
- name: Upload PSP binary
|
- name: Upload PSP binary
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: eboot-psp
|
name: eboot-psp
|
||||||
path: build/EBOOT.PBP
|
path: build/Dusk/EBOOT.PBP
|
||||||
|
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- build-linux
|
- build-linux
|
||||||
# - build-psp
|
- build-psp
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -64,11 +68,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: dusk-linux
|
name: dusk-linux
|
||||||
path: ./release-assets
|
path: ./release-assets
|
||||||
# - name: Download PSP binary
|
- name: Download PSP binary
|
||||||
# uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
# with:
|
with:
|
||||||
# name: eboot-psp
|
name: eboot-psp
|
||||||
# path: ./release-assets
|
path: ./release-assets
|
||||||
- name: Create Gitea Release
|
- name: Create Gitea Release
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
@@ -80,4 +84,14 @@ jobs:
|
|||||||
# Create release
|
# Create release
|
||||||
RELEASE_RESPONSE=$(curl -s -X POST "$GITEA_URL/api/v1/repos/${{ github.repository }}/releases" \
|
RELEASE_RESPONSE=$(curl -s -X POST "$GITEA_URL/api/v1/repos/${{ github.repository }}/releases" \
|
||||||
-H "Content-Type: application/json" \
|
-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