From 3ec1e99f4bf36419614d7f32abe0af4512369cf2 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Sun, 13 Sep 2020 01:30:08 +0200 Subject: [PATCH] fix MacOS CI issues due to QT dependency (#35) * fix MacOS CI issues due to QT deps * adjust to new name of deps archive * use MACOS_DEPS_VERSION instead of OSX_DEPS_VERSION * disable python dependency during build --- .github/workflows/build.yml | 16 ++++++++++++---- CI/macos/Brewfile | 3 +-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f3bc3602..ad1c3789 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: runs-on: [macos-latest] env: QT_VERSION: 5.14.1 - OSX_DEPS_VERSION: '2020-04-07' + MACOS_DEPS_VERSION: '2020-08-30' steps: - name: Checkout uses: actions/checkout@v2 @@ -39,17 +39,25 @@ jobs: brew bundle cd - - name: 'Install prerequisite: Pre-built dependencies' + if: steps.deps-cache.outputs.cache-hit != 'true' shell: bash run: | - curl -L -O https://github.com/obsproject/obs-deps/releases/download/${{ env.OSX_DEPS_VERSION }}/osx-deps-${{ env.OSX_DEPS_VERSION }}.tar.gz - tar -xf ./osx-deps-${{ env.OSX_DEPS_VERSION }}.tar.gz -C "/tmp" + curl -L -O https://github.com/obsproject/obs-deps/releases/download/${{ env.MACOS_DEPS_VERSION }}/macos-deps-${{ env.MACOS_DEPS_VERSION }}.tar.gz + tar -xf ./macos-deps-${{ env.MACOS_DEPS_VERSION }}.tar.gz -C "/tmp" + - name: 'Install prerequisite: Pre-built dependency Qt' + if: steps.deps-qt-cache.outputs.cache-hit != 'true' + shell: bash + run: | + curl -L -O https://github.com/obsproject/obs-deps/releases/download/${{ env.MACOS_DEPS_VERSION }}/macos-qt-${{ env.QT_VERSION }}-${{ env.MACOS_DEPS_VERSION }}.tar.gz + tar -xf ./macos-qt-${{ env.QT_VERSION }}-${{ env.MACOS_DEPS_VERSION }}.tar.gz -C "/tmp" + xattr -r -d com.apple.quarantine /tmp/obsdeps - name: Configure shell: bash run: | echo "add_subdirectory(${{ env.PLUGIN_NAME }})" >> UI/frontend-plugins/CMakeLists.txt mkdir ./build cd ./build - cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.11 -DDepsPath="/tmp/obsdeps" -DQTDIR="/usr/local/Cellar/qt/${{ env.QT_VERSION }}" .. + cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.11 -DDISABLE_PYTHON=ON -DDepsPath="/tmp/obsdeps" -DQTDIR="/tmp/obsdeps" .. cd - - name: Build shell: bash diff --git a/CI/macos/Brewfile b/CI/macos/Brewfile index 1c081c25..58ec1877 100644 --- a/CI/macos/Brewfile +++ b/CI/macos/Brewfile @@ -2,5 +2,4 @@ brew "jack" brew "speexdsp" brew "cmake" brew "freetype" -brew "fdk-aac" -brew "https://gist.githubusercontent.com/DDRBoxman/9c7a2b08933166f4b61ed9a44b242609/raw/ef4de6c587c6bd7f50210eccd5bd51ff08e6de13/qt.rb" \ No newline at end of file +brew "fdk-aac" \ No newline at end of file