Skip to content

Commit 4882b2c

Browse files
authored
[Actions] Fix Actions after the update of GitHub hosted runners (#388)
* Make sure to use the development templates for testing the changes * Make sure to install jsonref in venv, improve the 32-bit libs instalation * Activate the virtual environment for the building job * Add a new way to specify the branch of a build template to speed up the development in Actions * Try without the nested conditions * Try to include no white space in the uses branch specify * See try an approach with open source dynamic uses action * Let's see why it fails, print the output of the previous job * The job ID has to be unique, to the output has to be processed later to be swapped for master if empty * Oops, wrong syntax, fix it and rerun * Apparently we have to pass github.sha instead of just a branch name * Try a different approach * Try with a static name * There is no simple way to use dynamic variable for using apart from changing the whole actions structure in each repo * Get ready for the PR
1 parent c078afd commit 4882b2c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/Build ThunderInterfaces on Linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
ThunderInterfaces:
1515
needs: Thunder
16-
uses: rdkcentral/ThunderInterfaces/.github/workflows/Linux build template.yml@master
16+
uses: rdkcentral/ThunderInterfaces/.github/workflows/Linux build template.yml@development/actions-gcc-13 # change back to master
1717

1818
ThunderClientLibraries:
1919
needs: ThunderInterfaces

.github/workflows/Linux build template.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ jobs:
2828
echo "deb http://archive.ubuntu.com/ubuntu/ jammy-updates main universe restricted multiverse" | sudo tee -a /etc/apt/sources.list
2929
sudo dpkg --add-architecture i386
3030
sudo apt-get update
31-
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
32-
sudo pip install jsonref
31+
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'}}
32+
python3 -m venv venv
33+
source venv/bin/activate
34+
pip install jsonref
3335
3436
- name: Download artifacts
3537
uses: actions/download-artifact@v4
@@ -70,6 +72,7 @@ jobs:
7072
# ----- Building & uploading -----
7173
- name: Build ThunderInterfaces
7274
run: |
75+
source venv/bin/activate
7376
cmake -G Ninja -S ThunderInterfaces -B ${{matrix.build_type}}/build/ThunderInterfaces \
7477
-DCMAKE_CXX_FLAGS="-Wall -Wextra -Wpedantic -Werror -m${{matrix.architecture}}" \
7578
-DCMAKE_C_FLAGS="-Wall -Wextra -Wpedantic -Werror -m${{matrix.architecture}}" \

0 commit comments

Comments
 (0)