name: Tahoma2D Linux Build on: [push, pull_request] jobs: Linux: runs-on: ubuntu-16.04 strategy: matrix: compiler: [ gcc, clang ] include: - compiler: gcc cc: gcc cxx: g++ - compiler: clang cc: clang cxx: clang++ steps: - uses: actions/checkout@v2 - name: Install Dependencies run: | ci-scripts/linux/tahoma-install.sh sudo apt-get install ccache - uses: actions/cache@v2 with: path: | /home/runner/.ccache /home/runner/work/tahoma2d/taoma2d/thirdparty/aom /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 }}- - name: Build ffmpeg run: | export CC="ccache ${{ matrix.cc }}" export CXX="ccache ${{ matrix.cxx }}" ci-scripts/linux/tahoma-buildffmpeg.sh - name: Build OpenCV run: | export CC="ccache ${{ matrix.cc }}" export CXX="ccache ${{ matrix.cxx }}" ci-scripts/linux/tahoma-buildopencv.sh - name: Build Tahoma2D run: | export CC="ccache ${{ matrix.cc }}" export CXX="ccache ${{ matrix.cxx }}" ci-scripts/linux/tahoma-build.sh - name: Create Package run: | ci-scripts/linux/tahoma-buildpkg.sh mv toonz/build/Tahoma2D-linux.tar.gz toonz/build/Tahoma2D-linux-${{ matrix.compiler }}.tar.gz - uses: actions/upload-artifact@v1 with: name: Tahoma2D-linux-${{ matrix.compiler }}.tar.gz path: toonz/build/Tahoma2D-linux-${{ matrix.compiler }}.tar.gz