From 34faad6b146b758dc80e0541d361df2e64749f43 Mon Sep 17 00:00:00 2001 From: Mateusz Daniluk <121170681+VeithMetro@users.noreply.github.com> Date: Mon, 14 Oct 2024 13:47:11 +0200 Subject: [PATCH] [Actions] Update GCC multilib version and use venv for jsonref (#49) * Update GCC multilib version and use venv for jsonref * Use the develop branch for testing for now * Explicitly state the ubuntu version * Use the master template as all changes were merged --- .github/workflows/Linux build template.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Linux build template.yml b/.github/workflows/Linux build template.yml index 899fac6..04846ff 100644 --- a/.github/workflows/Linux build template.yml +++ b/.github/workflows/Linux build template.yml @@ -6,7 +6,7 @@ on: jobs: ThunderLibraries: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 strategy: matrix: @@ -28,8 +28,10 @@ jobs: echo "deb http://archive.ubuntu.com/ubuntu/ jammy-updates main universe restricted multiverse" | sudo tee -a /etc/apt/sources.list sudo dpkg --add-architecture i386 sudo apt-get update - sudo apt install python3-pip build-essential cmake ninja-build libusb-1.0-0-dev zlib1g-dev zlib1g-dev:i386 libssl-dev gcc-11-multilib g++-11-multilib - sudo pip install jsonref + sudo apt install python3-pip build-essential cmake ninja-build libusb-1.0-0-dev ${{matrix.architecture == '32' && 'zlib1g-dev:i386 libssl-dev:i386 gcc-13-multilib g++-13-multilib' || 'zlib1g-dev libssl-dev'}} + python3 -m venv venv + source venv/bin/activate + pip install jsonref - name: Download artifacts uses: actions/download-artifact@v4 @@ -61,6 +63,7 @@ jobs: # ----- Building & uploading ----- - name: Build ThunderLibraries run: | + source venv/bin/activate cmake -G Ninja -S ThunderLibraries -B ${{matrix.build_type}}/build/ThunderLibraries \ -DCMAKE_CXX_FLAGS="-Wall -Wextra -Wpedantic -Werror -m${{matrix.architecture}}" \ -DCMAKE_C_FLAGS="-Wall -Wextra -Wpedantic -Werror -m${{matrix.architecture}}" \