diff options
| author | Seth Barberee <seth.barberee@gmail.com> | 2021-01-28 12:58:40 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-28 12:58:40 -0600 |
| commit | 5f0b3f2faa137d4b31925bc30bcbabfa0af5e99e (patch) | |
| tree | f5a9a73477fdf9214c1d533aa81d28815504f408 /.github/workflows | |
| parent | 1d9dbf3497641cabcd93b204ed4f75204710d690 (diff) | |
| parent | 96297af9cc0ece7833d2729bc0faab8a81fdaada (diff) | |
Merge pull request #23 from SethBarberee/github_ci
[WIP] Github Actions
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..502cb29 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,45 @@ +name: GithubCI + +on: + push: + branches: [ master ] + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Install xdelta + run: | + apt-get update -y + apt-get install -y xdelta + + - name: Fetch repo + uses: actions/checkout@master + + - name: Load and setup agbcc + run: | + git clone https://github.com/luckytyphlosion/agbcc.git -b new_layout_with_libs + cd agbcc && make -j${nproc} && make install prefix=$GITHUB_WORKSPACE + + - name: Build tools and baserom + run: | + cd $GITHUB_WORKSPACE + make tools + head -c 33554432 /dev/zero > tmp.bin + xdelta3 -d -s tmp.bin baserom.xdelta baserom.gba + rm tmp.bin + + - name: Build via Makefile + run: | + make -j${nproc} compare + + # only run OK when pushed to master + - name: Run OK webhook + shell: bash + if: ${{ github.event_name == 'push' }} + env: + CALCROM_DISCORD_WEBHOOK_USERNAME: ${{ secrets.CALCROM_DISCORD_WEBHOOK_USERNAME }} + CALCROM_DISCORD_WEBHOOK_AVATAR_URL: ${{ secrets.CALCROM_DISCORD_WEBHOOK_AVATAR_URL }} + CALCROM_DISCORD_WEBHOOK_URL: ${{ secrets.CALCROM_DISCORD_WEBHOOK_URL }} + run: sh .github/calcrom/webhook.sh pmd_red |
