Skip to content

Update build.yml

Update build.yml #15

Workflow file for this run

name: Libdragon C CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Install dependencies
run: |
export N64_INST=/home/runner/work/N64-RPG/N64-RPG/libdragon-toolchain
echo "N64_INST=/home/runner/work/N64-RPG/N64-RPG/libdragon-toolchain" >> "$GITHUB_ENV"
echo "N64_INST=/home/runner/work/N64-RPG/N64-RPG/libdragon-toolchain" > .env
export PATH=$PATH:$N64_INST/bin
echo "PATH=$PATH:$N64_INST/bin" >> "$GITHUB_ENV"
echo "PATH=$PATH:$N64_INST/bin" > .env
sudo apt-get update
sudo apt install build-essential libpng-dev
# curl -sLO https://github.com/DragonMinded/libdragon/releases/download/toolchain-continuous-prerelease/gcc-toolchain-mips64-x86_64.deb && sudo dpkg -i gcc-toolchain-mips64-x86_64.deb
cd libdragon
cd tools
./build-toolchain.sh
cd ..
./build.sh
- name: make assets
run: make assets
- name: make
run: make
- name: Upload ROM to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: breadcodes.z64
asset_name: unnamed_rpg.z64
tag: ${{ github.ref }}
overwrite: true
body: "Latest ROM built from ${{ github.ref }}"