ci: Add clang-10 to Ubuntu builds

Disables caching as it didn't work and fixes the weird new jpeg issue.
This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2020-04-24 03:09:59 +02:00
parent 3aa467f93a
commit d0569a2b4d

View file

@ -32,36 +32,6 @@ jobs:
- name: "Clone Submodules" - name: "Clone Submodules"
shell: bash shell: bash
run: git submodule update --init --recursive run: git submodule update --init --recursive
- name: "Cache: OBS"
uses: actions/cache@v1
env:
cache-name: cache-libobs
with:
path: build/temp/libobs-src
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('CMakeLists.txt') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
${{ runner.os }}-${{ env.cache-name }}
- name: "Cache: OBS Dependencies"
uses: actions/cache@v1
env:
cache-name: cache-libobs-deps
with:
path: build/temp/obsdeps-src
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('CMakeLists.txt') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
${{ runner.os }}-${{ env.cache-name }}
- name: "Cache: Qt"
uses: actions/cache@v1
env:
cache-name: cache-qt
with:
path: build/temp/qt-src
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('CMakeLists.txt') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
${{ runner.os }}-${{ env.cache-name }}
- name: "Configure Project" - name: "Configure Project"
shell: bash shell: bash
run: | run: |
@ -89,35 +59,52 @@ jobs:
name: ${{ matrix.id }} name: ${{ matrix.id }}
path: build/package path: build/package
ubuntu: ubuntu:
name: "Linux/Ubuntu 64-bit" name: "Ubuntu 64-bit"
strategy: strategy:
matrix: matrix:
runner: [ ubuntu-18.04, ubuntu-latest ] ubuntu: [ bionic ]
compiler: [ gcc, clang ] compiler: [ gcc, clang ]
include: compiler-version: [ 8, 9, 10 ]
- runner: ubuntu-18.04 exclude:
- ubuntu: bionic
compiler: gcc compiler: gcc
compiler-cxx: g++ compiler-version: 10
- ubuntu: bionic
compiler: clang
compiler-version: 8 compiler-version: 8
include:
- ubuntu: bionic
compiler: gcc
compiler-version: 8
compiler-cxx: g++
runner: ubuntu-18.04
packages: gcc-8 g++8 packages: gcc-8 g++8
extra_command: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8 extra_command: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
id: ubuntu1804-gcc8 id: ubuntu1804-gcc8
- runner: ubuntu-latest - ubuntu: bionic
compiler: gcc compiler: gcc
compiler-version: 9
compiler-cxx: g++ compiler-cxx: g++
compiler-version: 9 runner: ubuntu-latest
packages: gcc-9 g++9
extra_command: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 800 --slave /usr/bin/g++ g++ /usr/bin/g++-9 extra_command: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 800 --slave /usr/bin/g++ g++ /usr/bin/g++-9
id: ubuntu1910-gcc9 id: ubuntu1804-gcc9
- runner: ubuntu-latest - ubuntu: bionic
compiler: clang compiler: clang
compiler-cxx: clang++
compiler-version: 9 compiler-version: 9
compiler-cxx: clang++
runner: ubuntu-18.04
packages: clang-9 packages: clang-9
extra_command: "" extra_command: ""
id: ubuntu1910-clang9 id: ubuntu1804-clang9
exclude: - ubuntu: bionic
- runner: ubuntu-18.04
compiler: clang compiler: clang
compiler-version: 10
compiler-cxx: clang++
runner: ubuntu-18.04
packages: clang-10
extra_command: ""
id: ubuntu1804-clang10
runs-on: ${{ matrix.runner }} runs-on: ${{ matrix.runner }}
env: env:
CMAKE_GENERATOR: "Ninja" CMAKE_GENERATOR: "Ninja"
@ -132,37 +119,22 @@ jobs:
- name: "Prerequisites: Apt-Get" - name: "Prerequisites: Apt-Get"
shell: bash shell: bash
run: | run: |
if [ "${{ matrix.compiler }}" == "clang" ]; then
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository "deb http://apt.llvm.org/${{ matrix.ubuntu }}/ llvm-toolchain-${{ matrix.ubuntu }}-${{ matrix.compiler-version }} main"
fi
sudo apt-get -qq update sudo apt-get -qq update
sudo apt-get purge libjpeg9-dev:amd64 libjpeg8-dev:amd64 libjpeg-turbo8-dev:amd64
sudo apt-get install \ sudo apt-get install \
build-essential \
${{ matrix.packages }} \ ${{ matrix.packages }} \
build-essential \
checkinstall \ checkinstall \
pkg-config \
cmake \ cmake \
ninja-build \ ninja-build \
git \ git \
libavcodec-dev \ qt5-default libqwt-qt5-dev libqt5svg5-dev
libavdevice-dev \
libavfilter-dev \
libavformat-dev \
libavutil-dev \
libswresample-dev \
libswscale-dev \
qtbase5-dev \
libqt5x11extras5-dev \
libqt5svg5-dev \
libgl1-mesa-dev \
pkg-config
${{ matrix.extra_command }} ${{ matrix.extra_command }}
- name: "Cache: OBS"
uses: actions/cache@v1
env:
cache-name: cache-libobs
with:
path: build/temp/libobs-src
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('CMakeLists.txt') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
${{ runner.os }}-${{ env.cache-name }}
- name: "Configure Project" - name: "Configure Project"
shell: bash shell: bash
run: | run: |