Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed May 2, 2024
1 parent 116a8ea commit 3060af4
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 2 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/build_mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
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: ubuntu-latest
container:
image: fzwoch/osxcross
steps:
- uses: actions/checkout@v4
- name: Compile 64 bit macOS builds
shell: bash
id: compile
env:
COMMON_FLAGS: "-O1 -s -fno-stack-protector -fno-math-errno -Qn"
MAC32_FLAGS: "-fvisibility=hidden -rdynamic -DCC_BUILD_ICON"
MAC64_FLAGS: "-fvisibility=hidden -rdynamic -DCC_BUILD_ICON"
run: |
LATEST_FLAG=-DCC_COMMIT_SHA=\"$(git rev-parse --short "$GITHUB_SHA")\"
cd src
MACOSX_DEPLOYMENT_TARGET=10.5 x86_64-apple-darwin9-cc *.c interop_cocoa.m ${{ env.COMMON_FLAGS }} ${{ env.MAC64_FLAGS }} $LATEST_FLAG -o cc-mac64-gl1 -framework Cocoa -framework OpenGL -framework IOKit -lobjc
MACOSX_DEPLOYMENT_TARGET=10.5 x86_64-apple-darwin9-cc *.c interop_cocoa.m ${{ env.COMMON_FLAGS }} ${{ env.MAC64_FLAGS }} $LATEST_FLAG -DCC_BUILD_GLMODERN -o cc-mac64-gl2 -framework Cocoa -framework OpenGL -framework IOKit -lobjc
MACOSX_DEPLOYMENT_TARGET=10.5 i386-apple-darwin9-cc *.c interop_cocoa.m ${{ env.COMMON_FLAGS }} ${{ env.MAC32_FLAGS }} $LATEST_FLAG -o cc-mac32-gl1 -framework Cocoa -framework OpenGL -framework IOKit -lobjc
MACOSX_DEPLOYMENT_TARGET=10.5 i386-apple-darwin9-cc *.c interop_cocoa.m ${{ env.COMMON_FLAGS }} ${{ env.MAC32_FLAGS }} $LATEST_FLAG -DCC_BUILD_GLMODERN -o cc-mac32-gl2 -framework Cocoa -framework OpenGL -framework IOKit -lobjc
- uses: ./.github/actions/notify_failure
if: ${{ always() && steps.compile.outcome == 'failure' }}
with:
NOTIFY_MESSAGE: 'Failed to compile 64 bit macOS build'
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'


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

- uses: ./.github/actions/upload_build
if: ${{ always() && steps.compile.outcome == 'success' }}
with:
SOURCE_FILE: 'src/cc-mac64-gl2'
DEST_NAME: 'ClassiCube-mac64-ModernGL'
4 changes: 2 additions & 2 deletions .github/workflows/build_mac64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
LATEST_FLAG=-DCC_COMMIT_SHA=\"$(git rev-parse --short "$GITHUB_SHA")\"
cd src
MACOSX_DEPLOYMENT_TARGET=10.6 clang *.c interop_cocoa.m ${{ env.COMMON_FLAGS }} ${{ env.MAC64_FLAGS }} $LATEST_FLAG -o cc-mac64-gl1 -framework Cocoa -framework OpenGL -framework IOKit -lobjc
MACOSX_DEPLOYMENT_TARGET=10.5 clang *.c interop_cocoa.m ${{ env.COMMON_FLAGS }} ${{ env.MAC64_FLAGS }} $LATEST_FLAG -DCC_BUILD_GLMODERN -o cc-mac64-gl2 -framework Cocoa -framework OpenGL -framework IOKit -lobjc
MACOSX_DEPLOYMENT_TARGET=10.9 clang *.c interop_cocoa.m ${{ env.COMMON_FLAGS }} ${{ env.MAC64_FLAGS }} $LATEST_FLAG -o cc-mac64-gl1 -framework Cocoa -framework OpenGL -framework IOKit -lobjc
MACOSX_DEPLOYMENT_TARGET=10.9 clang *.c interop_cocoa.m ${{ env.COMMON_FLAGS }} ${{ env.MAC64_FLAGS }} $LATEST_FLAG -DCC_BUILD_GLMODERN -o cc-mac64-gl2 -framework Cocoa -framework OpenGL -framework IOKit -lobjc
- uses: ./.github/actions/notify_failure
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build_webclient2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ concurrency:

jobs:
build:
if: github.ref_name == github.event.repository.default_branch
runs-on: ubuntu-latest
container:
image: trzeci/emscripten-fastcomp:1.39.0
Expand Down

0 comments on commit 3060af4

Please sign in to comment.