forked from nzp-team/quakespasm
-
Notifications
You must be signed in to change notification settings - Fork 0
117 lines (116 loc) · 4.05 KB
/
build-and-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: Build and Publish Release
on: [push]
jobs:
Compile-VPK:
runs-on: ubuntu-latest
outputs:
vpk_link: ${{ steps.zip.outputs.zip }}
container:
image: vitasdk/vitasdk:latest
steps:
- uses: actions/checkout@v2
- name: Install Packages and update VitaSDK
run: |
apk add bash build-base zip git curl cmake
vdpm vitashark
vdpm vitagl
git clone https://github.com/bythos14/SceShaccCgExt.git
cd SceShaccCgExt
mkdir build && cd build
cmake .. && make -j$(numproc) install
- name: Build
working-directory: ./
run: |
make -j$(numproc) -f Makefile.vita
- name: Zip and Upload
id: zip
working-directory: ./build/vita
run: |
zip -r vita-nzp-vpk.zip nzp.vpk
curl --upload-file ./vita-nzp-vpk.zip https://transfer.sh/vita-nzp-vpk.zip > output-log.log
echo "::set-output name=zip::$(cat output-log.log)"
Compile-NRO:
runs-on: ubuntu-latest
needs: Compile-VPK
outputs:
vpk_link: ${{ steps.vpk.outputs.vpk }}
nx_link: ${{ steps.zip.outputs.zip }}
container:
image: devkitpro/devkita64
steps:
- uses: actions/checkout@v2
- name: Store VPK link
id: vpk
run: |
echo "::set-output name=vpk::${{ needs.Compile-VPK.outputs.vpk_link }}"
- name: Build
working-directory: ./
run: |
make -j$(numproc) -f Makefile.nx
- name: Zip and Upload
id: zip
working-directory: ./build/nx
run: |
zip -r nx-nzp-nro.zip nzportable.nro nzportable.nacp
curl --upload-file ./nx-nzp-nro.zip https://transfer.sh/nx-nzp-nro.zip > output-log.log
echo "::set-output name=zip::$(cat output-log.log)"
Unify-and-Release:
runs-on: ubuntu-latest
needs: Compile-NRO
steps:
- uses: actions/checkout@v2
- name: Download Archives
working-directory: ./
run: |
curl ${{ needs.Compile-NRO.outputs.vpk_link }} -o vita-nzp-vpk.zip
curl ${{ needs.Compile-NRO.outputs.nx_link }} -o nx-nzp-nro.zip
- name: Generate Build Date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d-%H-%M-%S')"
- name: Delete Old Release
uses: dev-drprasad/[email protected]
with:
delete_release: true
tag_name: bleeding-edge
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: bleeding-edge
release_name: Automated Release ${{ steps.date.outputs.date }}
body: |
This is a **bleeding edge** NZ:P PSP NX/VITA release, stability is not guarenteed.
To install:
- Grab the .ZIP archive for your platform
- VITA: Extract the `.VPK`, copy it to your VITA, and install with VitaShell.
- NX: Extract `nzportable.nro` to `switch/nzportable` on your Nintendo Switch.
draft: true
prerelease: false
- name: Upload VITA Archive
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./vita-nzp-vpk.zip
asset_name: vita-nzp-vpk.zip
asset_content_type: application/zip
- name: Upload NX Archive
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./nx-nzp-nro.zip
asset_name: nx-nzp-nro.zip
asset_content_type: application/zip
- name: Publish Release
uses: StuYarrow/publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
id: ${{ steps.create_release.outputs.id }}