diff --git a/.github/azure-workflows/build-mac-arm64.yml b/.github/azure-workflows/build-mac-arm64.yml new file mode 100644 index 00000000..721c6acc --- /dev/null +++ b/.github/azure-workflows/build-mac-arm64.yml @@ -0,0 +1,26 @@ +trigger: +- master + +pool: + name: Default + demands: + - agent.name -equals MacStadium-ARM64-Mac + +workspace: + clean: all + +steps: +- script: mkdir $(Pipeline.Workspace)/build + displayName: 'Create build environment' + +- script: arch -arm64 cmake $(Build.SourcesDirectory) -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_PREFIX_PATH="$(brew --prefix qt@6);$(brew --prefix libarchive)" -DMACOS_BUNDLE_LIBS=ON -DMACOS_BUILD_DMG=ON -DUSE_QT6=ON + displayName: 'Configure' + workingDirectory: $(Pipeline.Workspace)/build + +- script: arch -arm64 make -j$(sysctl -n hw.logicalcpu) + displayName: 'Make' + workingDirectory: $(Pipeline.Workspace)/build + +- publish: $(Pipeline.Workspace)/build/melonDS.dmg + artifact: melonDS.dmg + diff --git a/azure-pipelines.yml b/.github/azure-workflows/build-mac-x86_64.yml similarity index 100% rename from azure-pipelines.yml rename to .github/azure-workflows/build-mac-x86_64.yml diff --git a/CMakeLists.txt b/CMakeLists.txt index 66d0461a..8f89c314 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,6 +121,13 @@ if (ENABLE_LTO) endif() endif() +find_program(CCACHE "ccache") +if (CCACHE) + message(STATUS "Using CCache to speed up compilation") + set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE}) + set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE}) +endif() + option(BUILD_QT_SDL "Build Qt/SDL frontend" ON) add_subdirectory(src) diff --git a/README.md b/README.md index 2d068f04..a4cfbe2e 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,9 @@
- + +

DS emulator, sorta