summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pierre.php@gmail.com>2021-09-16 22:55:52 +0700
committerGitHub <noreply@github.com>2021-09-16 22:55:52 +0700
commitde9b5eb9437a7ff0007bcf48c9dee8d5041ac37b (patch)
tree282cb038d1968a62bbc036cd1eb504e54926c973
parent27e99a0e8f1c0fc4b0937396e13b0de7191eae2d (diff)
downloadlibgd-de9b5eb9437a7ff0007bcf48c9dee8d5041ac37b.tar.gz
sometimes I am stupid, let clean up src dirs for src packages install once installed and check before in case the flow failed previously before the cleanup (#774)
-rw-r--r--.github/workflows/ci_ubuntu.yml14
1 files changed, 13 insertions, 1 deletions
diff --git a/.github/workflows/ci_ubuntu.yml b/.github/workflows/ci_ubuntu.yml
index ead85ad..4ad1142 100644
--- a/.github/workflows/ci_ubuntu.yml
+++ b/.github/workflows/ci_ubuntu.yml
@@ -63,9 +63,9 @@ jobs:
run: sudo -E apt-get install --fix-missing -qq -o Acquire::Retries=3 cmake clang-12 gcc build-essential libjpeg-turbo8-dev libimagequant-dev libde265-dev libpng-dev libwebp-dev libtiff5-dev libx265-dev libheif-dev libfreetype-dev libheif-dev libavifile-0.7-dev libxpm-dev libraqm-dev dh-autoreconf ninja-build nasm meson
- name: install AOM codec for libavif
- if: "!contains(matrix.config.name,'Ubuntu Graviton GCC')"
run: |
cd ${{github.temp }}
+ [ -d "aom" ] && rm -rf aom
git clone -b v3.1.2 --depth 1 https://aomedia.googlesource.com/aom
cd aom
mkdir build.libavif
@@ -73,9 +73,13 @@ jobs:
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DENABLE_DOCS=0 -DENABLE_EXAMPLES=0 -DENABLE_TESTDATA=0 -DENABLE_TESTS=0 -DENABLE_TOOLS=0 -DBUILD_SHARED_LIBS=1 -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
ninja
sudo ninja install
+ cd ..
+ rm -rf aom
- name: install dav1d codec for libavif
run: |
+ cd ${{github.temp }}
+ [ -d "dav1d" ] && rm -rf dav1d
git clone -b 0.9.2 --depth 1 https://code.videolan.org/videolan/dav1d.git
cd dav1d
mkdir build
@@ -83,10 +87,13 @@ jobs:
meson --buildtype release -Dprefix=/usr ..
ninja
sudo ninja install
+ cd ..
+ rm -rf dav1d
- name: install libyuv
run: |
cd ${{github.temp }}
+ [ -d "libyuv" ] && rm -rf libyuv
git clone https://chromium.googlesource.com/libyuv/libyuv/
cd libyuv
mkdir build
@@ -94,10 +101,13 @@ jobs:
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -B. ..
make
sudo make install
+ cd ..
+ rm -rf libyuv
- name: install libavif
run: |
cd ${{github.temp }}
+ [ -d "libavif" ] && rm -rf libavif
git clone https://github.com/AOMediaCodec/libavif.git
cd libavif
git checkout tags/v0.9.2
@@ -106,6 +116,8 @@ jobs:
cmake -DBUILD_SHARED_LIBS=1 -DAVIF_CODEC_AOM=1 -DAVIF_CODEC_DAV1D=1 -DAVIF_CODEC_LIBGAV1=0 -DAVIF_CODEC_RAV1E=0 -DAVIF_CODEC_SVT=0 -B. ..
make
sudo make install
+ cd ..
+ rm -rf libavif
- name: Debug CC Env
env: