tahoma2d/.github/workflows/linux_build.yml

66 lines
2.1 KiB
YAML
Raw Normal View History

name: Tahoma2D Linux Build
on: [push, pull_request]
jobs:
Linux:
runs-on: ubuntu-16.04
strategy:
matrix:
2021-03-20 11:13:35 +13:00
compiler: [ gcc, clang ]
include:
2021-03-20 11:13:35 +13:00
- compiler: gcc
cc: gcc
cxx: g++
- 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/opencv
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-${{ matrix.compiler }}-
${{ runner.os }}-
- 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
- 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
- name: Build libmypaint
run: |
2021-04-19 07:46:28 +12:00
export CC="ccache ${{ matrix.cc }}"
export CXX="ccache ${{ matrix.cxx }}"
ci-scripts/linux/tahoma-buildlibmypaint.sh
- 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
- name: Get 3rd Party Apps
run: |
ci-scripts/linux/tahoma-get3rdpartyapps.sh
- 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
- 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