mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-30 17:50:04 -06:00
modernize camera_betterer
This commit is contained in:
73
.github/workflows/build-macos-universal.yml
vendored
Normal file
73
.github/workflows/build-macos-universal.yml
vendored
Normal file
@ -0,0 +1,73 @@
|
||||
name: CMake Build (macOS Universal)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
prepare:
|
||||
runs-on: [self-hosted, macOS, ARM64]
|
||||
|
||||
steps:
|
||||
- name: Clean workspace
|
||||
run: rm -rf ${{runner.workspace}}/build
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
|
||||
build-arm64:
|
||||
needs: prepare
|
||||
runs-on: [self-hosted, macOS, ARM64]
|
||||
env:
|
||||
homebrew_prefix: /opt/homebrew
|
||||
|
||||
steps:
|
||||
- name: Create build directory
|
||||
run: mkdir -p ${{runner.workspace}}/build/arm64
|
||||
|
||||
- name: Configure
|
||||
working-directory: ${{runner.workspace}}/build/arm64
|
||||
run: arch -arm64 ${{env.homebrew_prefix}}/bin/cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_PREFIX_PATH="${{env.homebrew_prefix}}/opt/qt@6;${{env.homebrew_prefix}}/opt/libarchive" -DPKG_CONFIG_EXECUTABLE=${{env.homebrew_prefix}}/bin/pkg-config -DMACOS_BUNDLE_LIBS=ON -DUSE_QT6=ON
|
||||
|
||||
- name: Make
|
||||
working-directory: ${{runner.workspace}}/build/arm64
|
||||
run: arch -arm64 make -j$(sysctl -n hw.logicalcpu)
|
||||
|
||||
build-x86_64:
|
||||
needs: prepare
|
||||
runs-on: [self-hosted, macOS, ARM64]
|
||||
env:
|
||||
homebrew_prefix: /usr/local
|
||||
|
||||
steps:
|
||||
- name: Create build directory
|
||||
run: mkdir -p ${{runner.workspace}}/build/x86_64
|
||||
|
||||
- name: Configure
|
||||
working-directory: ${{runner.workspace}}/build/x86_64
|
||||
run: arch -x86_64 ${{env.homebrew_prefix}}/bin/cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_PREFIX_PATH="${{env.homebrew_prefix}}/opt/qt@6;${{env.homebrew_prefix}}/opt/libarchive" -DPKG_CONFIG_EXECUTABLE=${{env.homebrew_prefix}}/bin/pkg-config -DMACOS_BUNDLE_LIBS=ON -DUSE_QT6=ON
|
||||
|
||||
- name: Make
|
||||
working-directory: ${{runner.workspace}}/build/x86_64
|
||||
run: arch -x86_64 make -j$(sysctl -n hw.logicalcpu)
|
||||
|
||||
universal-binary:
|
||||
needs: [build-arm64, build-x86_64]
|
||||
runs-on: [self-hosted, macOS, ARM64]
|
||||
|
||||
steps:
|
||||
- name: Merge binaries
|
||||
run: $GITHUB_WORKSPACE/tools/mac-universal.py ${{runner.workspace}}/build/arm64/melonDS.app ${{runner.workspace}}/build/x86_64/melonDS.app ${{runner.workspace}}/build/universal/melonDS.app
|
||||
|
||||
- name: Create DMG
|
||||
run: hdiutil create -fs HFS+ -volname melonDS -srcfolder ${{runner.workspace}}/build/universal/melonDS.app -ov -format UDBZ ${{runner.workspace}}/build/universal/melonDS.dmg
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: macOS-universal
|
||||
path: ${{runner.workspace}}/build/universal/melonDS.dmg
|
||||
|
2
.github/workflows/build-windows.yml
vendored
2
.github/workflows/build-windows.yml
vendored
@ -35,7 +35,7 @@ jobs:
|
||||
|
||||
- name: Configure
|
||||
working-directory: ${{runner.workspace}}/build
|
||||
run: cmake $GITHUB_WORKSPACE -G 'MSYS Makefiles' -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_STATIC=ON -DQT5_STATIC_DIR=C:/tools/msys64/mingw64/qt5-static
|
||||
run: cmake $GITHUB_WORKSPACE -G 'MSYS Makefiles' -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_STATIC=ON -DCMAKE_PREFIX_PATH=C:/tools/msys64/mingw64/qt5-static
|
||||
|
||||
- name: Make
|
||||
working-directory: ${{runner.workspace}}/build
|
||||
|
Reference in New Issue
Block a user