[Workflows][CI] Ubuntu build test with GCC14 #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and run tests | |
on: [push, pull_request] | |
env: | |
app_id: inputstream.adaptive | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: "Ubuntu x64 / GCC-14 package test" | |
os: ubuntu-latest | |
CC: gcc | |
CXX: g++ | |
steps: | |
- name: Install needed ubuntu depends | |
run: | | |
sudo add-apt-repository -y ppa:team-xbmc/xbmc-nightly | |
sudo apt-get update | |
sudo apt-get install fakeroot | |
- name: Install GCC-14 | |
run: | | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa -y | |
sudo apt update | |
sudo apt install g++-14 gcc-14 | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 100 | |
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 100 | |
- name: Checkout Kodi repo | |
uses: actions/checkout@v4 | |
with: | |
repository: xbmc/xbmc | |
ref: master | |
path: xbmc | |
- name: Checkout add-on repo | |
uses: actions/checkout@v4 | |
with: | |
path: ${{ env.app_id }} | |
- name: Configure | |
env: | |
CC: ${{ matrix.CC }} | |
CXX: ${{ matrix.CXX }} | |
run: | | |
cd ${app_id} && mkdir -p build && cd build | |
cmake -DADDONS_TO_BUILD=${app_id} -DADDON_SRC_PREFIX=${{ github.workspace }} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/xbmc/addons -DPACKAGE_ZIP=1 ${{ github.workspace }}/xbmc/cmake/addons | |
- name: Build | |
env: | |
CC: ${{ matrix.CC }} | |
CXX: ${{ matrix.CXX }} | |
run: | | |
cd ${app_id}/build | |
make | |
- name: Copy artifact | |
run: | | |
cd ${{ github.workspace }}/xbmc/addons | |
zip -r inputstream.adaptive.zip inputstream.adaptive | |
- name: Run tests | |
run: | | |
cd ${app_id}/build/${app_id}-prefix/src/${app_id}-build | |
make CTEST_OUTPUT_ON_FAILURE=1 GTEST_COLOR=1 test | |
- name: Upload zipped artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: inputstream.adaptive.zip | |
path: ${{ github.workspace }}/xbmc/addons/ |