forked from Cpasjuste/pemu
-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (64 loc) · 1.99 KB
/
vita-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
name: vita-release
on:
push:
tags:
- "v*.*"
workflow_dispatch:
jobs:
build-vita-release:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install build dependencies
run: |
sudo apt -yq update
sudo apt -yq install build-essential cmake git zip curl python
- name: Install vita toolchain
run: |
git clone https://github.com/vitasdk/vdpm
cd vdpm
./bootstrap-vitasdk.sh
export VITASDK=/usr/local/vitasdk
export PATH=$VITASDK/bin:$PATH
./install-all.sh
- name: Configure
run: |
cd $GITHUB_WORKSPACE
export VITASDK=/usr/local/vitasdk
mkdir cmake-build && cd cmake-build
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release .. \
-DPLATFORM_VITA=ON -DOPTION_LIGHT=ON -DOPTION_BUILTIN_MINIZIP=ON -DOPTION_MPV_PLAYER=OFF
- name: Build pfbneo
run: |
cd $GITHUB_WORKSPACE/cmake-build
make pfbneo.deps
make -j pfbneo.vpk
mv src/cores/pfbneo/pfbneo.vpk $GITHUB_WORKSPACE
- name: Build pgen
run: |
cd $GITHUB_WORKSPACE/cmake-build
make pgen.vpk
mv src/cores/pgen/pgen.vpk $GITHUB_WORKSPACE
- name: Build pnes
run: |
cd $GITHUB_WORKSPACE/cmake-build
make pnes.vpk
mv src/cores/pnes/pnes.vpk $GITHUB_WORKSPACE
- name: Build psnes
run: |
cd $GITHUB_WORKSPACE/cmake-build
make psnes.vpk
mv src/cores/psnes/psnes.vpk $GITHUB_WORKSPACE
- name: Build pgba
run: |
cd $GITHUB_WORKSPACE/cmake-build
make pgba.vpk
mv src/cores/pgba/pgba.vpk $GITHUB_WORKSPACE
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: '*.vpk'
token: ${{ secrets.GITHUB_TOKEN }}