From 9fd1db8c0ca17641cafdaa0b1558d04980c70c4b Mon Sep 17 00:00:00 2001 From: Peter Siegmund Date: Fri, 17 Nov 2023 09:59:53 +0100 Subject: [PATCH] add github actions Signed-off-by: Peter Siegmund --- .github/workflows/push.yaml | 17 +++++++++++++++++ .vscode/settings.json | 12 ++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/push.yaml diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml new file mode 100644 index 0000000..767b8b4 --- /dev/null +++ b/.github/workflows/push.yaml @@ -0,0 +1,17 @@ +name: Build on push +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + name: Build gbdk project + + steps: + - uses: actions/checkout@v2 + + - name: Build + uses: wujood/gbdk-2020-github-builder@1.0.7 + with: + subdirectory: ./src + output-name: gb-snake + source: main.c diff --git a/.vscode/settings.json b/.vscode/settings.json index 063aa03..475cc4d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,5 +3,17 @@ "stdint.h": "c", "gb.h": "c", "version.h": "c" + }, + "actionButtons": { + "commands": [ + { + "name": "Clean", + "command": "make clean", + }, + { + "name": "Build", + "command": "make", + } + ] } }