From 9b58acc2245ea91b5f1b40410a53a2e5c4e888e8 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Thu, 25 Mar 2021 14:51:05 +1100 Subject: [PATCH] ci: try new dependency package --- .github/workflows/ci.yml | 50 ++++++++-------------------------------- 1 file changed, 10 insertions(+), 40 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee9617aef..3d05c6304 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -308,49 +308,22 @@ jobs: with: version: 5.15.1 - - name: Acquire FFmpeg + - name: Acquire Dependencies shell: bash + working-directory: ${{ runner.workspace }} run: | - $DOWNLOAD_TOOL https://olivevideoeditor.org/deps/ffmpeg-mac.zip - $EXTRACT_TOOL ffmpeg-mac.zip - - - name: Acquire OpenColorIO - shell: bash - run: | - $DOWNLOAD_TOOL https://olivevideoeditor.org/deps/ocio-mac.zip - $EXTRACT_TOOL ocio-mac.zip - - - name: Acquire OpenTimelineIO - shell: bash - run: | - $DOWNLOAD_TOOL https://olivevideoeditor.org/deps/otio-mac.zip - $EXTRACT_TOOL otio-mac.zip - - - name: Acquire OpenEXR - shell: bash - run: | - $DOWNLOAD_TOOL https://olivevideoeditor.org/deps/openexr-mac.zip - $EXTRACT_TOOL openexr-mac.zip - - - name: Acquire OpenImageIO - shell: bash - run: | - $DOWNLOAD_TOOL https://olivevideoeditor.org/deps/oiio-mac.zip - $EXTRACT_TOOL oiio-mac.zip - - - name: Acquire Crashpad - shell: bash - run: | - $DOWNLOAD_TOOL https://olivevideoeditor.org/deps/crashpad-mac.zip - $EXTRACT_TOOL crashpad-mac.zip + $DOWNLOAD_TOOL https://github.com/olive-editor/dependencies/releases/download/continuous/olive-dep-mac-x86_64.tar.gz + sudo tar xzf olive-dep-mac-x86_64.tar.gz -C / - name: Configure CMake shell: bash + env: + DEP_LOCATION: ${{ runner.workspace }}/install working-directory: ${{ runner.workspace }}/build run: | brew install ninja - PATH=$GITHUB_WORKSPACE:$PATH \ - cmake $GITHUB_WORKSPACE -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -G "${{ matrix.cmake-gen }}" + PATH=/opt/olive-editor:$PATH \ + cmake $GITHUB_WORKSPACE -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -G "${{ matrix.cmake-gen }}" -DCMAKE_INSTALL_PREFIX=/opt/olive-editor - name: Build working-directory: ${{ runner.workspace }}/build @@ -366,14 +339,11 @@ jobs: - name: Create Package working-directory: ${{ runner.workspace }}/build + env: + BUNDLE_NAME: "Olive.app" shell: bash run: | - export BUNDLE_NAME=Olive.app mv app/$BUNDLE_NAME . - - # HACK: OCIO doesn't link it's library properly so we need to manually correct - install_name_tool -change libOpenColorIO.1.dylib @rpath/libOpenColorIO.1.dylib $BUNDLE_NAME/Contents/MacOS/Olive - macdeployqt $BUNDLE_NAME $DOWNLOAD_TOOL https://github.com/arl/macdeployqtfix/raw/master/macdeployqtfix.py python2 macdeployqtfix.py $BUNDLE_NAME/Contents/MacOS/Olive /usr/local/Cellar/qt5/5.*/