diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 822b386eae..25e332491e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,40 +1,25 @@ -name: CI +name: Build ROM on: push: - branches: [ master ] + branches: [ romhack ] pull_request: jobs: - build: - runs-on: ubuntu-18.04 + build_rom: + name: Build ROM + runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@master - - - name: Install binutils - run: sudo apt install gcc-arm-none-eabi binutils-arm-none-eabi - # build-essential, git, and libpng-dev are already installed - # gcc-arm-none-eabi is only needed for the modern build - # as an alternative to dkP - - - name: Install agbcc + - uses: actions/checkout@v2 + - name: Install dependencies + run: sudo apt-get install binutils-arm-none-eabi gcc-arm-none-eabi + - name: Build & install agbcc run: | - git clone https://github.com/pret/agbcc.git - cd agbcc + cd .. + git clone --depth 1 https://github.com/pret/agbcc + cd agbcc ./build.sh - ./install.sh ../ - - - name: Compare - run: make -j${nproc} compare - - - name: Modern - run: make -j${nproc} modern - - - name: Webhook - if: ${{ github.event_name == 'push' }} - env: - CALCROM_DISCORD_WEBHOOK_USERNAME: OK - CALCROM_DISCORD_WEBHOOK_AVATAR_URL: https://i.imgur.com/38BQHdd.png - CALCROM_DISCORD_WEBHOOK_URL: ${{ secrets.CALCROM_DISCORD_WEBHOOK_URL }} - run: sh .github/calcrom/webhook.sh pokeemerald + ./install.sh ../pokeemerald + - name: Build ROM + run: | + make diff --git a/.github/workflows/buildrom.yml b/.github/workflows/buildrom.yml deleted file mode 100644 index e59b124970..0000000000 --- a/.github/workflows/buildrom.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Build ROM - -on: push - # push: - # tags: - # - 'v*' - -jobs: - build_rom: - runs-on: ubuntu-latest - # container: - # image: arantonitis/devkitgba - steps: - - uses: actions/checkout@v2 - - name: Install dependencies - run: | - sudo apt-get install binutils-arm-none-eabi gcc-arm-none-eabi - - name: Build & install agbcc - run: | - cd .. - git clone --depth 1 https://github.com/pret/agbcc - cd agbcc - ./build.sh - ./install.sh ../pokeemerald - - name: Build ROM - run: | - make