added github workflow #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |