Skip to content

Commit

Permalink
added github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
savaughn committed Sep 23, 2023
1 parent 85cb324 commit 81636cc
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and Test

on:
push:
branches:
- main

jobs:
build:
runs-on: macos-latest
strategy:
matrix:
arch: [x86_64, arm64] # Specify the desired architectures here

steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Set up QEMU for ARM64
if: matrix.arch == 'arm64'
run: |
brew install qemu
brew link qemu
- name: Build Project
run: |
make all
- name: Clean Up
run: |
make clean
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit 81636cc

Please sign in to comment.