diff options
Diffstat (limited to '.github/workflows/build_mac32.yml')
-rw-r--r-- | .github/workflows/build_mac32.yml | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/.github/workflows/build_mac32.yml b/.github/workflows/build_mac32.yml new file mode 100644 index 0000000..905f8e1 --- /dev/null +++ b/.github/workflows/build_mac32.yml @@ -0,0 +1,55 @@ +name: Build latest (macOS 32 bit) +# trigger via either push to selected branches or on manual run +on: + push: + branches: + - main + - master + workflow_dispatch: + +concurrency: + group: ${{ github.ref }}-mac32 + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + container: + image: ghcr.io/classicube/minimal-osxcross:latest + credentials: + username: UnknownShadow200 + password: ${{ secrets.GHCR_ACCESS_KEY }} + steps: + - uses: actions/checkout@v4 + - name: Compile 32 bit macOS builds + shell: bash + id: compile + env: + COMMON_FLAGS: "-O1 -s -fno-stack-protector -fno-math-errno -Qn -fvisibility=hidden -rdynamic -DCC_BUILD_ICON" + run: | + LATEST_FLAG=-DCC_COMMIT_SHA=\"${GITHUB_SHA::9}\" + + cd src + PATH=$PATH:/usr/local/compiler/target/bin + i386-apple-darwin8-clang *.c Window_cocoa.m ${{ env.COMMON_FLAGS }} $LATEST_FLAG -o cc-mac32-gl1 -framework Cocoa -framework OpenGL -framework IOKit -lobjc -lgcc_s.1 + i386-apple-darwin8-clang *.c Window_cocoa.m ${{ env.COMMON_FLAGS }} $LATEST_FLAG -DCC_GFX_BACKEND=CC_GFX_BACKEND_GL2 -o cc-mac32-gl2 -framework Cocoa -framework OpenGL -framework IOKit -lobjc -lgcc_s.1 + + + - uses: ./.github/actions/notify_failure + if: ${{ always() && steps.compile.outcome == 'failure' }} + with: + NOTIFY_MESSAGE: 'Failed to compile 32 bit macOS build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' + + + - uses: ./.github/actions/upload_build + if: ${{ always() && steps.compile.outcome == 'success' }} + with: + SOURCE_FILE: 'src/cc-mac32-gl1' + DEST_NAME: 'ClassiCube-mac32-Intel' + + - uses: ./.github/actions/upload_build + if: ${{ always() && steps.compile.outcome == 'success' }} + with: + SOURCE_FILE: 'src/cc-mac32-gl2' + DEST_NAME: 'ClassiCube-mac32-Intel-ModernGL' |