From d39798e8d3d12054a1159901f93e7d34df105f9a Mon Sep 17 00:00:00 2001 From: Jason Carpenter <5916026+breadbored@users.noreply.github.com> Date: Sat, 2 Dec 2023 00:01:24 -0500 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..911b1e1 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,36 @@ +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 + uses: textbook/git-checkout-submodule-action@master + with: + submodules: recursive + + - name: Install dependencies + run: | + export N64_INST=/opt/libdragon + 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 + ./build.sh + + - name: make assets + run: make assets + + - name: make + run: make