Skip to content

Commit

Permalink
[Actions] Fix Actions after the update of GitHub hosted runners (#388)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
VeithMetro authored Oct 14, 2024
1 parent c078afd commit 4882b2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Build ThunderInterfaces on Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

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

ThunderClientLibraries:
needs: ThunderInterfaces
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/Linux build template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -70,6 +72,7 @@ jobs:
# ----- Building & uploading -----
- name: Build ThunderInterfaces
run: |
source venv/bin/activate
cmake -G Ninja -S ThunderInterfaces -B ${{matrix.build_type}}/build/ThunderInterfaces \
-DCMAKE_CXX_FLAGS="-Wall -Wextra -Wpedantic -Werror -m${{matrix.architecture}}" \
-DCMAKE_C_FLAGS="-Wall -Wextra -Wpedantic -Werror -m${{matrix.architecture}}" \
Expand Down

0 comments on commit 4882b2c

Please sign in to comment.