Skip to content

Fix installation ubuntu20.04 22.04 #653

Fix installation ubuntu20.04 22.04

Fix installation ubuntu20.04 22.04 #653

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-18.04
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
with:
submodules: recursive
# Runs a set of commands using the runners shell
- name: Setup ROS
uses: betwo/[email protected]
with:
# Version range or exact version of ROS version to use, using SemVer's version range syntax.
ros-version: 'melodic'
build-tool: 'catkin_tools'
# Root directory of the catkin workspace
workspace: ./ros
- name: Compilation settings
run: |
sudo apt-get -y install gcc-8 g++-8 rsync libyaml-cpp-dev libcurl4-openssl-dev
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 700 --slave /usr/bin/g++ g++ /usr/bin/g++-7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
- name: Setup AirSim
run: |
./setup.sh
./build.sh
working-directory: ./AirSim
- name: Build catkin ws
run: |
set -ex o pipefail
catkin build
working-directory: ./ros
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'