Merge pull request #676 from manongjohn/allow_action_canon_support

Include CanonSDK only on master builds
This commit is contained in:
manongjohn 2021-04-23 08:54:42 -04:00 committed by GitHub
commit 92eec7e399
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 3 deletions

View file

@ -21,6 +21,17 @@ jobs:
/Users/runner/work/tahoma2d/taoma2d/thirdparty/opencv
key: ${{ runner.os }}-${{ github.sha }}
restore-keys: ${{ runner.os }}-
- name: Get CanonSDK
if: ${{ github.event_name == 'push' }}
run: |
wget --header="Authorization: token ${{ secrets.CANONSDK_TOKEN }}" --header="Accept:application/octet-stream" -O EDSDK_v131231_Macintosh.zip https://api.github.com/repos/tahoma2d/CanonSDK/releases/assets/25267390
unzip EDSDK_v131231_Macintosh.zip -d EDSDK_v131231_Macintosh
unzip EDSDK_v131231_Macintosh/Macintosh.dmg.zip -d EDSDK_v131231_Macintosh
7z x EDSDK_v131231_Macintosh/Macintosh.dmg -oEDSDK_v131231_Macintosh
mv EDSDK_v131231_Macintosh/Macintosh/EDSDK/* thirdparty/canon
- name: Get 3rd Party Apps
run: |
ci-scripts/osx/tahoma-get3rdpartyapps.sh
- name: Build ffmpeg
run: |
export PATH="/usr/local/opt/ccache/libexec:$PATH"
@ -33,9 +44,6 @@ jobs:
run: |
export PATH="/usr/local/opt/ccache/libexec:$PATH"
ci-scripts/osx/tahoma-build.sh
- name: Get 3rd Party Apps
run: |
ci-scripts/osx/tahoma-get3rdpartyapps.sh
- name: Create Package
run: bash ./ci-scripts/osx/tahoma-buildpkg.sh
- uses: actions/upload-artifact@v1

View file

@ -12,6 +12,14 @@ jobs:
- name: Install Dependencies
run: |
ci-scripts\windows\tahoma-install.bat
- name: Get CanonSDK
if: ${{ github.event_name == 'push' }}
run: |
curl -H "Authorization: token ${{ secrets.CANONSDK_TOKEN }}" -H "Accept:application/octet-stream" -fsSL -o EDSDK_v131231_Windows.zip https://api.github.com/repos/tahoma2d/CanonSDK/releases/assets/25267396
7z x EDSDK_v131231_Windows.zip -oEDSDK_v131231_Windows
move EDSDK_v131231_Windows\EDSDK\Header thirdparty\canon
move EDSDK_v131231_Windows\EDSDK_64\Dll thirdparty\canon
move EDSDK_v131231_Windows\EDSDK_64\Library thirdparty\canon
- name: Get 3rd Party Apps
run: |
ci-scripts\windows\tahoma-get3rdpartyapps.bat