Skip to content

Commit

Permalink
ARM macOS test
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed May 25, 2024
1 parent 112b353 commit 59f455a
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build_mac-arm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build latest (macOS 64 bit)
on: [push]

concurrency:
group: ${{ github.ref }}-mac64
cancel-in-progress: true

jobs:
build:
if: github.ref_name == github.event.repository.default_branch
runs-on: macOS-latest
steps:
- uses: actions/checkout@v4
- name: Compile ARM64 macOS builds
shell: bash
id: compile
env:
COMMON_FLAGS: "-O1 -s -fno-stack-protector -fno-math-errno -Qn"
MAC_FLAGS: "-fvisibility=hidden -rdynamic -DCC_BUILD_ICON -DCC_BUILD_GLMODERN -arch arm64"
run: |
LATEST_FLAG=-DCC_COMMIT_SHA=\"$(git rev-parse --short "$GITHUB_SHA")\"
cd src
clang *.c interop_cocoa.m ${{ env.COMMON_FLAGS }} ${{ env.MAC_FLAGS }} $LATEST_FLAG -o cc-mac-arm -framework Cocoa -framework OpenGL -framework IOKit -lobjc
- uses: ./.github/actions/notify_failure
if: ${{ always() && steps.compile.outcome == 'failure' }}
with:
NOTIFY_MESSAGE: 'Failed to compile ARM64 macOS build'
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'


- uses: ./.github/actions/upload_build
if: ${{ always() && steps.compile.outcome == 'success' }}
with:
SOURCE_FILE: 'src/cc-mac-arm'
DEST_NAME: 'ClassiCube-mac-ARM64'

0 comments on commit 59f455a

Please sign in to comment.