Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to emulate the ROS2 Jenkins environment on Github runner #1327

Merged
merged 1 commit into from
Feb 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions .github/workflows/ubuntu-isolated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
compiler: [ {CC: /usr/bin/clang, CXX: /usr/bin/clang++} ]
os: [ubuntu-latest]
compiler: [ {CC: /usr/bin/gcc, CXX: /usr/bin/g++} ]
standard: [ 17 ]

steps:
Expand All @@ -25,6 +25,24 @@ jobs:
with:
access_token: ${{ github.token }}

# Remove some packages to emulate the ROS2 Jenkins environment
# X11: https://raspberrypi.stackexchange.com/a/92334
# Java: https://askubuntu.com/a/185531
name: Remove packages
run: |
sudo apt-get install libomp-dev
sudo apt purge --auto-remove 'x11-*'
java -version
sudo dpkg --list | grep -i jdk
sudo dpkg --list | grep -i java
sudo apt-get purge --auto-remove openjdk*
sudo apt-get purge --auto-remove icedtea-* openjdk-*
sudo dpkg --list | grep -i jdk
sudo dpkg --list | grep -i java
sudo apt purge --auto-remove 'libjpeg*'
sudo apt purge --auto-remove 'libpng*'
sudo apt purge --auto-remove 'libxml*'

- name: Checkout repository
uses: actions/checkout@v3

Expand All @@ -47,7 +65,8 @@ jobs:
echo "CC: $CC"
echo "CXX: $CXX"
echo "Standard: $CXX_STANDARD"
cmake .. -DCMAKE_C_COMPILER="${CC}" -DCMAKE_CXX_COMPILER="${CXX}" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/tmp/usr/local -DCMAKE_VERBOSE_MAKEFILE=ON -DUSE_CXX_STANDARD=$CXX_STANDARD
cmake .. -DCMAKE_C_COMPILER="${CC}" -DCMAKE_CXX_COMPILER="${CXX}" -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/tmp/usr/local -DCMAKE_VERBOSE_MAKEFILE=ON -DUSE_CXX_STANDARD=$CXX_STANDARD
cat ViSP-third-party.txt

- name: Compile
Expand Down
Loading