Skip to content

Cocoa: Make GLFW work with AWT on macOS #205

Cocoa: Make GLFW work with AWT on macOS

Cocoa: Make GLFW work with AWT on macOS #205

Workflow file for this run

name: LWJGL Build
on:
workflow_dispatch:
push:
branches:
- macos-async
env:
AWS_DEFAULT_REGION: us-east-1
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
S3_PARAMS: --cache-control "public,must-revalidate,proxy-revalidate,max-age=0"
GLFW_PARAMS: -DGLFW_LIBRARY_TYPE=SHARED -DGLFW_BUILD_EXAMPLES=OFF -DGLFW_BUILD_TESTS=OFF -DGLFW_BUILD_DOCS=OFF -DCMAKE_BUILD_TYPE=Release
jobs:
macos:
name: macOS
runs-on: macos-latest
strategy:
matrix:
ARCH: [x64, arm64]
include:
- ARCH: x64
CMAKE_PARAMS: -DCMAKE_OSX_DEPLOYMENT_TARGET=10.11 -DCMAKE_OSX_ARCHITECTURES=x86_64
- ARCH: arm64
CMAKE_PARAMS: -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0 -DCMAKE_OSX_ARCHITECTURES=arm64
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 4
- name: Configure build
run: cmake -B build $GLFW_PARAMS ${{matrix.CMAKE_PARAMS}}
- name: Build
run: |
cmake --build build --parallel
strip -u -r build/src/libglfw.dylib
- name: Upload artifact
run: aws s3 cp build/src/libglfw.dylib s3://lwjgl-build/nightly/macosx/${{matrix.ARCH}}/libglfw_async.dylib ${{env.S3_PARAMS}}
- name: Upload git revision
run: |
git log --first-parent --pretty=format:%H --skip 3 -n 1 > libglfw_async.dylib.git
aws s3 cp libglfw_async.dylib.git s3://lwjgl-build/nightly/macosx/${{matrix.ARCH}}/ ${{env.S3_PARAMS}}