Skip to content

Commit

Permalink
Fix clang CI build on Ubuntu 18
Browse files Browse the repository at this point in the history
  • Loading branch information
betwo committed Aug 8, 2021
1 parent eb04ebf commit f8b09aa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/continuous_integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ jobs:
id: determine_ros_version
run:
if ${{ contains(matrix.os, '16.04') }} ; then
echo "kinetic" ;
echo "::set-output name=ros_version::kinetic" ;
echo "kinetic" ;
echo "::set-output name=ros_version::kinetic" ;
elif ${{ contains(matrix.os, '18.04') }} ; then
echo "melodic" ;
echo "::set-output name=ros_version::melodic" ;
echo "melodic" ;
echo "::set-output name=ros_version::melodic" ;
elif ${{ contains(matrix.os, '20.04') }} ; then
echo "noetic" ;
echo "::set-output name=ros_version::noetic" ;
echo "noetic" ;
echo "::set-output name=ros_version::noetic" ;
else
echo "::set-output name=ros_version::undefined" ;
echo "::error::Unsupported Ubuntu / ROS version" ;
echo "::set-output name=ros_version::undefined" ;
echo "::error::Unsupported Ubuntu / ROS version" ;
fi
- uses: actions/checkout@v1
with:
Expand All @@ -52,9 +52,9 @@ jobs:
sudo apt-add-repository -y 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic main'
sudo apt-get update -y
apt list | grep clang
sudo apt-get install -y clang-13
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-13 50
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-13 50
sudo apt-get install -y clang-14
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-14 50
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-14 50
- uses: betwo/github-setup-catkin@master
with:
ros-version: ${{ steps.determine_ros_version.outputs.ros_version }}
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-build-generic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ DOCKERFILE=${SCRIPT_DIR}/${TYPE}.docker
set -x
cd $SCRIPT_DIR/../..
pwd
docker build -f ${DOCKERFILE} -t gerona-${TYPE} --network=host .
docker build -f ${DOCKERFILE} -t gerona-${TYPE} --pull --network=host .

0 comments on commit f8b09aa

Please sign in to comment.