2021-01-27 02:19:09 +13:00
|
|
|
name: Tahoma2D macOS Build
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
macOS:
|
|
|
|
runs-on: macos-10.15
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install Dependencies
|
2021-03-20 11:13:35 +13:00
|
|
|
run: |
|
|
|
|
ci-scripts/osx/tahoma-install.sh
|
|
|
|
brew install ccache
|
|
|
|
mkdir /Users/runner/.ccache
|
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
/Users/runner/.ccache
|
|
|
|
/Users/runner/work/tahoma2d/taoma2d/thirdparty/aom
|
|
|
|
/Users/runner/work/tahoma2d/taoma2d/thirdparty/ffmpeg
|
|
|
|
/Users/runner/work/tahoma2d/taoma2d/thirdparty/opencv
|
|
|
|
key: ${{ runner.os }}-${{ github.sha }}
|
|
|
|
restore-keys: ${{ runner.os }}-
|
2021-04-24 00:03:20 +12:00
|
|
|
- name: Get CanonSDK
|
|
|
|
if: ${{ github.event_name == 'push' }}
|
|
|
|
run: |
|
2021-04-25 00:20:49 +12:00
|
|
|
wget --header="Authorization: token ${{ secrets.TAHOMA2D_TOKEN }}" --header="Accept:application/octet-stream" -O EDSDK_v131231_Macintosh.zip https://api.github.com/repos/tahoma2d/CanonSDK/releases/assets/25267390
|
2021-04-24 00:03:20 +12:00
|
|
|
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
|
2021-04-24 04:06:32 +12:00
|
|
|
cd thirdparty/canon/framework/EDSDK.framework/Versions
|
|
|
|
rm Current
|
|
|
|
ln -s A Current
|
|
|
|
cd ..
|
|
|
|
rm Resources EDSDK
|
|
|
|
ln -s Versions/Current/Resources Resources
|
|
|
|
ln -s Versions/Current/EDSDK EDSDK
|
2021-04-24 00:03:20 +12:00
|
|
|
- name: Get 3rd Party Apps
|
|
|
|
run: |
|
|
|
|
ci-scripts/osx/tahoma-get3rdpartyapps.sh
|
2021-01-27 02:19:09 +13:00
|
|
|
- name: Build ffmpeg
|
2021-03-20 11:13:35 +13:00
|
|
|
run: |
|
|
|
|
export PATH="/usr/local/opt/ccache/libexec:$PATH"
|
|
|
|
ci-scripts/osx/tahoma-buildffmpeg.sh
|
2021-01-27 02:19:09 +13:00
|
|
|
- name: Build OpenCV
|
2021-03-20 11:13:35 +13:00
|
|
|
run: |
|
|
|
|
export PATH="/usr/local/opt/ccache/libexec:$PATH"
|
|
|
|
ci-scripts/osx/tahoma-buildopencv.sh
|
2021-01-27 02:19:09 +13:00
|
|
|
- name: Build Tahoma2D
|
2021-03-20 11:13:35 +13:00
|
|
|
run: |
|
|
|
|
export PATH="/usr/local/opt/ccache/libexec:$PATH"
|
|
|
|
ci-scripts/osx/tahoma-build.sh
|
2021-01-27 02:19:09 +13:00
|
|
|
- name: Create Package
|
|
|
|
run: bash ./ci-scripts/osx/tahoma-buildpkg.sh
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: Tahoma2D-osx.dmg
|
|
|
|
path: toonz/build/Tahoma2D-osx.dmg
|
2021-04-25 00:20:49 +12:00
|
|
|
- name: Get Nightly Release Date
|
|
|
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
|
|
|
run: |
|
|
|
|
echo "NIGHTLYDATE=$(date '+%Y-%m-%d')" >> $GITHUB_ENV
|
|
|
|
echo "NIGHTLYDATETIME=$(date '+%Y-%m-%d %H:%M:%S %Z')" >> $GITHUB_ENV
|
|
|
|
- name: Update Latest Nightly Release
|
|
|
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
|
|
|
uses: ncipollo/release-action@v1
|
|
|
|
with:
|
|
|
|
allowUpdates: true
|
|
|
|
artifactErrorsFailBuild: false
|
|
|
|
artifacts: toonz/build/Tahoma2D-osx.dmg
|
|
|
|
artifactContentType: "raw"
|
|
|
|
body: ${{ github.event.head_commit.message }}
|
|
|
|
name: Lastest Nightly ${{ env.NIGHTLYDATE }}
|
|
|
|
prerelease: true
|
|
|
|
replacesArtifacts: true
|
|
|
|
tag: nightly
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
2021-05-29 05:47:52 +12:00
|
|
|
- name: Create Nightlies Tag
|
|
|
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
|
|
|
run: |
|
|
|
|
git remote add nightly_repo https://tahoma2d:${{ secrets.TAHOMA2D_TOKEN }}@github.com/tahoma2d/tahoma2d_nightlies.git
|
|
|
|
git config lfs.https://tahoma2d:${{ secrets.TAHOMA2D_TOKEN }}@github.com/tahoma2d/tahoma2d_nightlies.git.lfs.locksverify false
|
|
|
|
git config --unset-all http.https://github.com/.extraheader
|
|
|
|
git fetch --unshallow
|
|
|
|
git tag -f nightly-${{ github.sha }}
|
|
|
|
git push -f nightly_repo nightly-${{ github.sha }}
|
|
|
|
git remote rm nightly_repo
|
2021-04-25 00:20:49 +12:00
|
|
|
- name: Create Nightlies Release
|
|
|
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
|
|
|
uses: ncipollo/release-action@v1
|
|
|
|
with:
|
|
|
|
allowUpdates: true
|
|
|
|
artifactErrorsFailBuild: false
|
|
|
|
artifacts: toonz/build/Tahoma2D-osx.dmg
|
|
|
|
artifactContentType: "raw"
|
|
|
|
body: ${{ github.event.head_commit.message }}
|
|
|
|
name: ${{ env.NIGHTLYDATETIME }}
|
2021-04-25 02:49:12 +12:00
|
|
|
omitBodyDuringUpdate: true
|
|
|
|
omitNameDuringUpdate: true
|
2021-04-25 00:20:49 +12:00
|
|
|
owner: tahoma2d
|
|
|
|
prerelease: true
|
|
|
|
replacesArtifacts: true
|
|
|
|
repo: tahoma2d_nightlies
|
|
|
|
tag: nightly-${{ github.sha }}
|
|
|
|
token: ${{ secrets.TAHOMA2D_TOKEN }}
|