-
Notifications
You must be signed in to change notification settings - Fork 20
64 lines (54 loc) · 2 KB
/
pullrequest.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
# This is a basic workflow to help you get started with Actions
name: PR Build
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
- pull_request
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install packages
run: |
sudo apt-get update -yq && sudo apt-get install cmake build-essential python3.10 -yq
mkdir asar
- name: Download and build asar
working-directory: ./asar
run: |
curl -sSL "https://github.com/RPGHacker/asar/archive/v1.81.tar.gz" -o v1.81.tar.gz
tar xfz v1.81.tar.gz
cd asar-1.81
cmake src
make
- name: Build practice hack patches
run: |
cp ./asar/asar-1.81/asar/asar-standalone ./tools/asar
chmod +x ./build_dev.sh
chmod +x ./build.sh
chmod +x ./build_PAL.sh
./build_dev.sh
./build.sh -DPRERELEASE=$(git rev-parse --short HEAD)
./build_PAL.sh -DPRERELEASE=$(git rev-parse --short HEAD)
mkdir ./web/public/patches
cp build/smhack20_sd2snes.ips ./web/public/patches/sd2snes-ntsc.ips
cp build/smhack20_tinystates.ips ./web/public/patches/tinystates-ntsc.ips
cp build/smhack20.ips ./web/public/patches/emulator-ntsc.ips
cp build/smpalhack20_sd2snes.ips ./web/public/patches/sd2snes-pal.ips
cp build/smpalhack20_tinystates.ips ./web/public/patches/tinystates-pal.ips
cp build/smpalhack20.ips ./web/public/patches/emulator-pal.ips
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Patches & Debug Symbols
path: ./build
- name: Set up node
uses: actions/setup-node@v4
- name: Build and export web application
working-directory: ./web
run: |
npm i
npx next build
npx next export