2021-01-27 02:19:09 +13:00
|
|
|
name: Tahoma2D Linux Build
|
2020-11-27 02:38:11 +13:00
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Linux:
|
|
|
|
runs-on: ubuntu-16.04
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-03-20 11:13:35 +13:00
|
|
|
compiler: [ gcc, clang ]
|
2020-11-27 02:38:11 +13:00
|
|
|
include:
|
2021-03-20 11:13:35 +13:00
|
|
|
- compiler: gcc
|
|
|
|
cc: gcc
|
|
|
|
cxx: g++
|
2020-11-27 02:38:11 +13:00
|
|
|
- compiler: clang
|
|
|
|
cc: clang
|
|
|
|
cxx: clang++
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install Dependencies
|
2021-03-20 11:13:35 +13:00
|
|
|
run: |
|
|
|
|
ci-scripts/linux/tahoma-install.sh
|
|
|
|
sudo apt-get install ccache
|
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
/home/runner/.ccache
|
2021-03-20 14:01:07 +13:00
|
|
|
/home/runner/work/tahoma2d/taoma2d/thirdparty/openh264
|
2021-03-20 11:13:35 +13:00
|
|
|
/home/runner/work/tahoma2d/taoma2d/thirdparty/ffmpeg
|
|
|
|
/home/runner/work/tahoma2d/taoma2d/thirdparty/ffmpeg_shared
|
|
|
|
/home/runner/work/tahoma2d/taoma2d/thirdparty/opencv
|
|
|
|
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-${{ matrix.compiler }}-
|
|
|
|
${{ runner.os }}-
|
2020-11-27 02:38:11 +13:00
|
|
|
- name: Build ffmpeg
|
2021-03-20 11:13:35 +13:00
|
|
|
run: |
|
|
|
|
export CC="ccache ${{ matrix.cc }}"
|
|
|
|
export CXX="ccache ${{ matrix.cxx }}"
|
|
|
|
ci-scripts/linux/tahoma-buildffmpeg.sh
|
2020-11-27 02:38:11 +13:00
|
|
|
- name: Build OpenCV
|
2021-03-20 11:13:35 +13:00
|
|
|
run: |
|
|
|
|
export CC="ccache ${{ matrix.cc }}"
|
|
|
|
export CXX="ccache ${{ matrix.cxx }}"
|
|
|
|
ci-scripts/linux/tahoma-buildopencv.sh
|
2020-11-27 02:38:11 +13:00
|
|
|
- name: Build Tahoma2D
|
2021-03-20 11:13:35 +13:00
|
|
|
run: |
|
|
|
|
export CC="ccache ${{ matrix.cc }}"
|
|
|
|
export CXX="ccache ${{ matrix.cxx }}"
|
|
|
|
ci-scripts/linux/tahoma-build.sh
|
2020-11-27 02:38:11 +13:00
|
|
|
- name: Create Package
|
2021-03-20 11:13:35 +13:00
|
|
|
run: |
|
|
|
|
ci-scripts/linux/tahoma-buildpkg.sh
|
|
|
|
mv toonz/build/Tahoma2D-linux.tar.gz toonz/build/Tahoma2D-linux-${{ matrix.compiler }}.tar.gz
|
2020-11-27 02:38:11 +13:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2021-03-20 11:13:35 +13:00
|
|
|
name: Tahoma2D-linux-${{ matrix.compiler }}.tar.gz
|
|
|
|
path: toonz/build/Tahoma2D-linux-${{ matrix.compiler }}.tar.gz
|