forked from Cpasjuste/pemu
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (55 loc) · 2.04 KB
/
switch-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
name: switch-release
on:
push:
tags:
- "v*.*"
jobs:
build-switch-release:
runs-on: ubuntu-20.04
container: devkitpro/devkita64:latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install build dependencies
run: |
sudo apt -yq update
sudo apt -yq install git build-essential cmake zip
- name: Build pfbneo
run: |
mkdir cmake-build-pfbneo && cd cmake-build-pfbneo
source /etc/profile.d/devkit-env.sh
cmake -G "Unix Makefiles" -DPLATFORM_SWITCH=ON -DOPTION_EMU=pfbneo -DCMAKE_BUILD_TYPE=Release ..
make pfbneo.deps
make -j $(getconf _NPROCESSORS_ONLN) pfbneo.nro
mv pfbneo/pfbneo.nro $GITHUB_WORKSPACE
- name: Build pgen
run: |
mkdir cmake-build-pgen && cd cmake-build-pgen
source /etc/profile.d/devkit-env.sh
cmake -G "Unix Makefiles" -DPLATFORM_SWITCH=ON -DOPTION_EMU=pgen -DCMAKE_BUILD_TYPE=Release ..
make -j $(getconf _NPROCESSORS_ONLN) pgen.nro
mv pgen/pgen.nro $GITHUB_WORKSPACE
- name: Build pnes
run: |
mkdir cmake-build-pnes && cd cmake-build-pnes
source /etc/profile.d/devkit-env.sh
cmake -G "Unix Makefiles" -DPLATFORM_SWITCH=ON -DOPTION_EMU=pnes -DCMAKE_BUILD_TYPE=Release ..
make -j $(getconf _NPROCESSORS_ONLN) pnes.nro
mv pnes/pnes.nro $GITHUB_WORKSPACE
- name: Build psnes
run: |
mkdir cmake-build-psnes && cd cmake-build-psnes
source /etc/profile.d/devkit-env.sh
cmake -G "Unix Makefiles" -DPLATFORM_SWITCH=ON -DOPTION_EMU=psnes -DCMAKE_BUILD_TYPE=Release ..
make -j $(getconf _NPROCESSORS_ONLN) psnes.nro
mv psnes/psnes.nro $GITHUB_WORKSPACE
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: '*.nro'
token: ${{ secrets.GITHUB_TOKEN }}