Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Update workflow_linux.yml

Anderson Pradoa6a35e192336
diff --git a/.github/workflows/workflow_linux.yml b/.github/workflows/workflow_linux.yml
index bd9926c14..866602036 100644
--- a/.github/workflows/workflow_linux.yml
+++ b/.github/workflows/workflow_linux.yml
@@ -17,16 +17,23 @@ jobs:
cxx: clang++
steps:
- uses: actions/checkout@v4
+
- name: Install libraries
run: |
sudo apt-get update
- sudo apt-get install build-essential cmake pkg-config ninja-build ccache libboost-all-dev qtbase5-dev qt5-qmake qtscript5-dev qttools5-dev qttools5-dev-tools qtmultimedia5-dev qtwebengine5-dev qtwayland5 libqt5svg5-dev libqt5websockets5-dev libqt5opengl5-dev libqt5multimedia5-plugins libqt5serialport5-dev libsuperlu-dev liblz4-dev libusb-1.0-0-dev liblzo2-dev libpng-dev libjpeg-dev libglew-dev freeglut3-dev libfreetype6-dev libjson-c-dev libmypaint-dev libopencv-dev libturbojpeg-dev libomp-dev libfuse2
+ sudo apt-get install -y build-essential cmake pkg-config ninja-build ccache libboost-all-dev qtbase5-dev qt5-qmake qtscript5-dev qttools5-dev qttools5-dev-tools qtmultimedia5-dev qtwayland5 libqt5svg5-dev libqt5opengl5-dev libqt5multimedia5-plugins libqt5serialport5-dev libsuperlu-dev liblz4-dev libusb-1.0-0-dev liblzo2-dev libpng-dev libjpeg-dev libglew-dev freeglut3-dev libfreetype6-dev libjson-c-dev libmypaint-dev libopencv-dev libturbojpeg-dev libomp-dev libfuse2
+
+ - name: Set up cache
+ run: mkdir -p /home/runner/.ccache
- uses: actions/cache@v4
with:
path: /home/runner/.ccache
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
- restore-keys: ${{ runner.os }}-${{ matrix.compiler }}-
+ restore-keys: |
+ ${{ runner.os }}-${{ matrix.compiler }}-
+ ${{ runner.os }}-
+ ${{ runner.os }}
- name: Build libtiff
run: |
@@ -36,6 +43,9 @@ jobs:
- name: Build
run: |
+ export CCACHE_DIR=/home/runner/.ccache
+ export CC="ccache ${{ matrix.cc }}"
+ export CXX="ccache ${{ matrix.cxx }}"
cd toonz
mkdir build
cd build