From b8c6aa7ecf7805c3893c1e7e0f18b95b5181364f Mon Sep 17 00:00:00 2001 From: Spencer Vaughn Date: Sun, 10 Dec 2023 00:13:47 -0600 Subject: [PATCH] added macos arm64 workflow --- .github/workflows/macos.yml | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/macos.yml diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000..89d374f --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,45 @@ +name: Build MacOS arm64 + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build_macos_arm64: + # if: false # This workflow is disabled + runs-on: macos-latest + strategy: + matrix: + arch: [arm64] + + steps: + - name: Checkout Code + uses: actions/checkout@v3 + + - name: Checkout raylib + uses: actions/checkout@v2 + with: + repository: raysan5/raylib + path: libs/raylib + + - name: Build raylib + run: | + cd libs/raylib/src + make PLATFORM=PLATFORM_DESKTOP + cp libraylib.a ../../libraylib.a + cp -r ../raylib/include ../../include + cd ../../.. + + - name: Build Project + run: | + make + + - name: Publish Build Artifacts + uses: actions/upload-artifact@v3 + with: + name: "vertical-artifacts-arm64" + path: build/