Skip to content

Commit

Permalink
Speed up CI using compiler cache
Browse files Browse the repository at this point in the history
  • Loading branch information
nahueespinosa committed Jan 22, 2023
1 parent 623d1d4 commit 3bb798c
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/ci_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3

- name: Install debian packages
run: |
Expand All @@ -26,12 +27,25 @@ jobs:
- name: Install python packages
run: pip install pre-commit==2.20.0

- name: Cache
uses: hendrikmuhs/ccache-action@v1.2.8
with:
key: ${{ github.job }}
verbose: 2

- name: Build and test
uses: ros-tooling/action-ros-ci@0.2.7
with:
package-name: beluga beluga_amcl
target-ros2-distro: ${{ env.ROS_DISTRO }}
target-ros2-distro: ${{ env.ROS_DISTRO }}
import-token: ${{ secrets.GITHUB_TOKEN }}
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/c75e4b34a3959524564afb584e2aa33c7eec323c/index.yaml
colcon-defaults: |
{
"build": {
"mixin": ["ccache"]
}
}
- name: Lint
shell: bash
Expand All @@ -46,11 +60,13 @@ jobs:
REPOSITORY_CHECKOUT_PATH: ${{ github.workspace }}/repository
DOXYGEN_HTML_OUTPUT: ${{ github.workspace }}/docs
steps:
- uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v3
with:
path: ${{ env.REPOSITORY_CHECKOUT_PATH }}

- uses: actions/checkout@v3
- name: Checkout documentation branch
uses: actions/checkout@v3
with:
path: ${{ env.DOXYGEN_HTML_OUTPUT }}
ref: gh-pages
Expand Down

0 comments on commit 3bb798c

Please sign in to comment.