Skip to content

Commit

Permalink
Merge pull request #1327 from s-trinh/feat_emulate_ROS2_Jenkins_env
Browse files Browse the repository at this point in the history
Try to emulate the ROS2 Jenkins environment on Github runner
  • Loading branch information
fspindle authored Feb 4, 2024
2 parents fdcb114 + 52e1924 commit 0dd449b
Showing 1 changed file with 22 additions and 3 deletions.
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

0 comments on commit 0dd449b

Please sign in to comment.