From 6c9cd5b5267a26074a5c130f3052de48af744e1f Mon Sep 17 00:00:00 2001 From: Spencer Vaughn Date: Sat, 23 Sep 2023 10:43:04 -0500 Subject: [PATCH] added github workflow --- .github/workflows/build-test.yml | 22 ++++++++++++++++++++++ Makefile | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build-test.yml diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 0000000..651092a --- /dev/null +++ b/.github/workflows/build-test.yml @@ -0,0 +1,22 @@ +name: Build and Test + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v2 + + - name: Build Project + run: | + make all + + - name: Clean Up + run: | + make clean diff --git a/Makefile b/Makefile index f79e523..005abec 100644 --- a/Makefile +++ b/Makefile @@ -80,7 +80,7 @@ bundle: all @echo "$(MACOS_BUNDLE) bundle created" .DEFAULT: - @echo "Nothing to do. Please specify a target (e.g., 'make run')." + echo "Nothing to do. Please specify a target (e.g., 'make run')." mgba: @mgba "$(ROM_PATH)/$(ROM_FILE)"