Skip to content

Commit e1681c9

Browse files
committed
Fix docker workflow
Signed-off-by: Alberto Tudela <[email protected]>
1 parent aa86d3f commit e1681c9

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,23 @@ env:
1717
jobs:
1818
build:
1919
runs-on: ubuntu-22.04
20+
env:
21+
CCACHE_DIR: ${{ github.workspace }}/.ccache
2022
steps:
2123
- name: Cache APT Packages
2224
uses: awalsh128/[email protected]
2325
with:
2426
packages: g++ cmake subversion doxygen libxml2-dev libssl-dev libsqlite3-dev libboost-all-dev libogre-1.9-dev libsvn-dev libopencv-dev binutils-dev libiberty-dev libcurl4-gnutls-dev libprocps-dev libqwt-qt5-dev libqt5webkit5-dev libqwtmathml-qt5-dev libqt5opengl5-dev libqt5svg5-dev qt*5-dev qttools5-dev-tools git
2527
- name: Checkout Repository
26-
uses: actions/[email protected]
28+
uses: actions/checkout@v4
29+
- name: Cache ccache
30+
uses: actions/cache@v4
31+
with:
32+
path: ${{ env.CCACHE_DIR }}
33+
key: ccache-${{ runner.os }}-${{ github.sha }}-${{ github.run_id }}
34+
restore-keys: |
35+
ccache-${{ runner.os }}-${{ github.sha }}
36+
ccache-${{ runner.os }}
2737
- name: Install MIRA
2838
run: |
2939
curl -o mira-installer-binary.sh https://www.mira-project.org/downloads/mira-installer-binary.sh

.github/workflows/docker_image.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15-
dsr-image:
15+
docker-image:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Extract branch name
@@ -54,7 +54,7 @@ jobs:
5454
uses: docker/[email protected]
5555
with:
5656
builder: ${{ steps.scitos2-builder.outputs.name }}
57-
context: docker
57+
context: .
5858
push: ${{ github.event_name != 'pull_request' }}
5959
tags: ${{ steps.meta.outputs.tags }}
6060
labels: ${{ steps.meta.outputs.labels }}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
![ROS2](https://img.shields.io/badge/ros2-humble-blue?logo=ros&logoColor=white)
44
![License](https://img.shields.io/github/license/grupo-avispa/scitos2)
55
[![Build](https://github.com/grupo-avispa/scitos2/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/grupo-avispa/scitos2/actions/workflows/build.yml)
6+
[![Docker image](https://github.com/grupo-avispa/scitos2/actions/workflows/docker_image.yml/badge.svg?branch=main)](https://github.com/grupo-avispa/scitos2/actions/workflows/docker_image.yml)
67
[![codecov](https://codecov.io/gh/grupo-avispa/scitos2/graph/badge.svg?token=794XFYV0FK)](https://codecov.io/gh/grupo-avispa/scitos2)
78

89
## Overview

0 commit comments

Comments
 (0)