Skip to content

Preset Improvements #631

Preset Improvements

Preset Improvements #631

Workflow file for this run

# 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@v3
- 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@v3
with:
name: Patches & Debug Symbols
path: ./build
- name: Set up node
uses: actions/setup-node@v3
- name: Build and export web application
working-directory: ./web
run: |
npm i
npx next build
npx next export