Skip to content

Commit

Permalink
Try to emulate the ROS2 Jenkins environment on Github runner.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-trinh committed Feb 4, 2024
1 parent fdcb114 commit 72573a9
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/ubuntu-isolated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
os: [ubuntu-latest]
compiler: [ {CC: /usr/bin/clang, CXX: /usr/bin/clang++} ]
standard: [ 17 ]

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 72573a9

Please sign in to comment.