From def272fac4151b6fe5d76d73c5af3bc9bc8df9e1 Mon Sep 17 00:00:00 2001 From: WaluigiWare64 <68647953+WaluigiWare64@users.noreply.github.com> Date: Sat, 24 Apr 2021 14:27:11 +0100 Subject: [PATCH] Use Azure Pipelines so we can target macOS 10.14 (#1042) --- .github/workflows/build-macos.yml | 37 ------------------------------- README.md | 7 +++--- azure-pipelines.yml | 29 ++++++++++++++---------- 3 files changed, 20 insertions(+), 53 deletions(-) delete mode 100644 .github/workflows/build-macos.yml diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml deleted file mode 100644 index e007e135..00000000 --- a/.github/workflows/build-macos.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: CMake Build (macOS x86-64) - -on: - push: - branches: - - master - pull_request: - branches: - - master - -env: - BUILD_TYPE: Release - -jobs: - build: - - runs-on: macos-latest - - steps: - - uses: actions/checkout@v1 - - name: Install dependencies - working-directory: ${{runner.workspace}} - run: brew install sdl2 qt@5 libslirp libarchive libepoxy - - name: Create build environment - run: mkdir ${{runner.workspace}}/build - - name: Configure - working-directory: ${{runner.workspace}}/build - run: | - cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_PREFIX_PATH="$(brew --prefix qt@5);$(brew --prefix libarchive)" -DMACOS_BUNDLE_LIBS=ON -DMACOS_BUILD_DMG=ON - - name: Make - working-directory: ${{runner.workspace}}/build - run: | - make -j$(sysctl -n hw.ncpu) - - uses: actions/upload-artifact@v1 - with: - name: melonDS.dmg - path: ${{runner.workspace}}/build/melonDS.dmg diff --git a/README.md b/README.md index d884f352..a0fe85e6 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@
- +

DS emulator, sorta @@ -97,9 +97,8 @@ If everything went well, melonDS should now be in the `dist` folder. ``` 4. Compile: ```zsh - export PKG_CONFIG_PATH="$(brew --prefix libarchive)/lib/pkgconfig" - cmake .. -DQt5_DIR=$(brew --prefix qt5)/lib/cmake/Qt5 - make -j$(sysctl -n hw.ncpu) + cmake .. -DCMAKE_PREFIX_PATH="$(brew --prefix qt@5);$(brew --prefix libarchive)" -DMACOS_BUNDLE_LIBS=ON + make -j$(sysctl -n hw.logicalcpu) mkdir dist && cp -r melonDS.app dist ``` If everything went well, melonDS.app should now be in the `dist` folder. diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 27a798ad..ca95b78c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,19 +1,24 @@ -# Starter pipeline -# Start with a minimal pipeline that you can customize to build and deploy your code. -# Add steps that build, run tests, deploy, and more: -# https://aka.ms/yaml - trigger: - master pool: - vmImage: ubuntu-latest + vmImage: macOS-10.14 steps: -- script: echo Hello, world! - displayName: 'Run a one-line script' +- script: brew install sdl2 qt@5 libslirp libarchive libepoxy + displayName: 'Install dependencies' + +- script: mkdir $(Pipeline.Workspace)/build + displayName: 'Create build environment' + +- script: cmake $(Build.SourcesDirectory) -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_PREFIX_PATH="$(brew --prefix qt@5);$(brew --prefix libarchive)" -DMACOS_BUNDLE_LIBS=ON -DMACOS_BUILD_DMG=ON + displayName: 'Configure' + workingDirectory: $(Pipeline.Workspace)/build + +- script: make -j$(sysctl -n hw.logicalcpu) + displayName: 'Make' + workingDirectory: $(Pipeline.Workspace)/build + +- publish: $(Pipeline.Workspace)/build/melonDS.dmg + artifact: melonDS.dmg -- script: | - echo Add other tasks to build, test, and deploy your project. - echo See https://aka.ms/yaml - displayName: 'Run a multi-line script'