-
Notifications
You must be signed in to change notification settings - Fork 9
140 lines (139 loc) · 4.89 KB
/
builds.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
name: Build
on: [push, pull_request]
jobs:
Compile-EBOOT:
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
container:
image: pspdev/pspdev
steps:
- uses: actions/checkout@v2
- name: Get container ready
run: |
apk add bash zip git gmp mpc1 mpfr4 make
- name: Build
working-directory: ./
run: |
cd source/psp/libpspmath
make && make install
cd ../../../
make -f Makefile.psp install WERROR=1
- name: Upload Artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v4
with:
name: psp-nzp-eboot
path: ./build/psp/bin/EBOOT.PBP
Compile-3DSX:
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
outputs:
o3ds_link: ${{ steps.zip.outputs.zip }}
container:
image: devkitpro/devkitarm
steps:
- uses: actions/checkout@v2
- name: Install Packages and update picaGL
run: |
git clone https://github.com/masterfeizz/picaGL.git
cd picaGL
git checkout revamp
mkdir clean
make install
- name: Build
working-directory: ./
run: |
make -f Makefile.ctr WERROR=1
- name: Upload Artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v4
with:
name: ctr-nzp-3dsx
path: ./build/3ds/bin/nzportable.3dsx
Compile-DOL:
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
container:
image: devkitpro/devkitppc
steps:
- uses: actions/checkout@v2
- name: Setup libogc2
run: |
sudo dkp-pacman-key --recv-keys C8A2759C315CFBC3429CC2E422B803BA8AA3D7CE --keyserver keyserver.ubuntu.com
sudo dkp-pacman-key --lsign-key C8A2759C315CFBC3429CC2E422B803BA8AA3D7CE
sudo sed -i '/^\[dkp-libs\]$/,$d' /opt/devkitpro/pacman/etc/pacman.conf
sudo echo -e '[extremscorner-devkitpro]\nServer = https://packages.extremscorner.org/devkitpro/linux/$arch' >> /opt/devkitpro/pacman/etc/pacman.conf
sudo dkp-pacman -Sy
sudo dkp-pacman -S --noconfirm --ask 4 gamecube-tools-git libogc2-git libogc2-libdvm-git
- name: Build
working-directory: ./
run: |
make -f Makefile.rvl WERROR=1
Unify-and-Release:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: [Compile-EBOOT, Compile-3DSX]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Wait for GitHub to keep up..
run: sleep 2s
shell: bash
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: ./
- name: Turn Artifacts into .ZIP archives
run: |
zip -r -j psp-nzp-eboot.zip psp-nzp-eboot/*
zip -r -j ctr-nzp-3dsx.zip ctr-nzp-3dsx/*
- 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/delete-tag-and-release@v0.2.1
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 NX/VITA release, stability is not guarenteed.
To install:
- Grab the .ZIP archive for your platform
- PSP: Extract the `EBOOT.PBP` to `/PSP/GAME/nzportable/`
- 3DS: Extract `nzportable.3dsx` to `/3ds/nzportable/`.
draft: true
prerelease: false
- name: Upload PSP Archive
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./psp-nzp-eboot.zip
asset_name: psp-nzp-eboot.zip
asset_content_type: application/zip
- name: Upload 3DS Archive
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./ctr-nzp-3dsx.zip
asset_name: ctr-nzp-3dsx.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 }}