Create main.yml #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# Runs a set of commands using the runners shell | |
- name: Install Dependencies | |
run: | | |
sudo apt install -y binutils-mips-linux-gnu build-essential git libcapstone-dev pkgconf python3 bsdmainutils | |
wget https://github.com/n64decomp/qemu-irix/releases/download/v2.11-deb/qemu-irix-2.11.0-2169-g32ab296eef_amd64.deb | |
sudo dpkg -i qemu-irix-2.11.0-2169-g32ab296eef_amd64.deb | |
wget https://archive.org/download/nointro.n64/Super%20Mario%2064%20%28Japan%29.7z/Super%20Mario%2064%20%28Japan%29.z64 | |
mv "Super Mario 64 (Japan).z64" baserom.jp.z64 | |
chmod +x tools/* | |
chmod +x tools/ido5.3_compiler/usr/bin/* | |
chmod +x tools/ido5.3_compiler/usr/lib/* | |
chmod +x tools/ido5.3_compiler/lib/* | |
sudo apt install build-essential pkg-config git binutils-mips-linux-gnu python3 zlib1g-dev libaudiofile-dev libcapstone-dev | |
- name: Compile | |
run: make -j VERSION=jp | |
- name: Publish Artifact | |
uses: actions/upload-artifact@v2.2.4 | |
with: | |
name: linuxBuild | |
path: 'build/jp/sm64.jp.z64' |