Skip to content

Commit

Permalink
Merge pull request #199 from robotology/fixci
Browse files Browse the repository at this point in the history
Migrate apt CI to use docker images and remove homebrew jobs
  • Loading branch information
traversaro authored Apr 17, 2023
2 parents 29350e9 + 4a7acb0 commit f33a09c
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions .github/workflows/cxx-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,37 +86,40 @@ jobs:
rospack find iCub
ros2 pkg prefix iCub
build-with-system-dependencies:
name: '[${{ matrix.os }}@${{ matrix.build_type }}]'
build-with-apt-dependencies:
name: '[apt:${{ matrix.docker_image }}@${{ matrix.build_type }}]'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
build_type: [Release]
os: [ubuntu-18.04, ubuntu-20.04, macos-latest]
os:
- ubuntu-latest
docker_image:
- "ubuntu:20.04"
- "ubuntu:22.04"
- "debian:sid"
container:
image: ${{ matrix.docker_image }}

steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3

# Print environment variables to simplify development and debugging
- name: Environment Variables
shell: bash
run: env

# ============
# DEPENDENCIES
# ============

- name: Dependencies [macOS]
if: contains(matrix.os, 'macos')
- name: Dependencies [apt]
run: |
brew install cmake
# ===================
# CMAKE-BASED PROJECT
# ===================

- name: Configure [Ubuntu/macOS]
# See https://stackoverflow.com/questions/44331836/apt-get-install-tzdata-noninteractive,
# only required by Ubuntu 20.04
export DEBIAN_FRONTEND=noninteractive
apt-get -y update
apt-get -y install \
git build-essential cmake
- name: Configure [apt]
shell: bash
run: |
mkdir -p build
Expand Down

0 comments on commit f33a09c

Please sign in to comment.