forked from tormach/hw_device_mgr
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github: Update CI & fix build failures
- Fix CI Docker image namespace, following upstream [1] (possibly temporary) - Update CI Docker image and CI config to Humble/Jammy - Remove `clang` tests & ccache config; fixes failure on Ubuntu Jammy, with no `clang-format-10` package; no C code here anyway - Update pre-commit GH action tag to latest 3.0.0 [1]: moveit/moveit2#1908
- Loading branch information
Showing
3 changed files
with
8 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,11 +18,10 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
env: | ||
- IMAGE: foxy-ci | ||
CLANG_TIDY: pedantic | ||
- IMAGE: humble-ci | ||
env: | ||
CXXFLAGS: "-Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls -Wno-deprecated-copy" | ||
DOCKER_IMAGE: ghcr.io/ros-planning/moveit2:${{ matrix.env.IMAGE }} | ||
DOCKER_IMAGE: moveit/moveit2:${{ matrix.env.IMAGE }} | ||
UPSTREAM_WORKSPACE: .github/workflows/upstream.rosinstall | ||
BEFORE_SETUP_UPSTREAM_WORKSPACE: .github/workflows/upstream_install.sh | ||
# Pull any updates to the upstream workspace (after restoring it from cache) | ||
|
@@ -32,18 +31,14 @@ jobs: | |
AFTER_BUILD_TARGET_WORKSPACE: ccache -s | ||
CCACHE_DIR: ${{ github.workspace }}/.ccache | ||
BASEDIR: ${{ github.workspace }}/.work | ||
CLANG_TIDY_BASE_REF: ${{ github.event_name != 'workflow_dispatch' && (github.base_ref || github.ref) || '' }} | ||
BEFORE_CLANG_TIDY_CHECKS: (cd $TARGET_REPO_PATH; clang-tidy --list-checks) | ||
CC: ${{ matrix.env.CLANG_TIDY && 'clang' }} | ||
CXX: ${{ matrix.env.CLANG_TIDY && 'clang++' }} | ||
|
||
name: ${{ matrix.env.IMAGE }}${{ matrix.env.CLANG_TIDY && (github.event_name != 'workflow_dispatch' && ' + clang-tidy (delta)' || ' + clang-tidy (all)') || '' }} | ||
name: ${{ matrix.env.IMAGE }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Free up disk space" | ||
if: matrix.env.CCOV | ||
run: | | ||
sudo apt-get -qq purge build-essential "ghc*" | ||
sudo apt-get -qq purge build-essential ghc\* | ||
sudo apt-get clean | ||
# cleanup docker images not used by us | ||
docker system prune -af | ||
|
@@ -74,20 +69,6 @@ jobs: | |
restore-keys: ${{ env.CACHE_PREFIX }} | ||
env: | ||
CACHE_PREFIX: target_ws-${{ matrix.env.IMAGE }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml', '.github/workflows/ci.yaml') }} | ||
- name: Cache ccache | ||
uses: pat-s/[email protected] | ||
with: | ||
path: ${{ env.CCACHE_DIR }} | ||
key: ${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }} | ||
restore-keys: | | ||
${{ env.CACHE_PREFIX }}-${{ github.sha }} | ||
${{ env.CACHE_PREFIX }} | ||
env: | ||
CACHE_PREFIX: ccache-${{ matrix.env.IMAGE }} | ||
- name: Configure ccache | ||
run: | | ||
mkdir -p ${{ env.CCACHE_DIR }} | ||
cp .github/ccache.conf ${{ env.CCACHE_DIR }}/ccache.conf | ||
- id: ici | ||
name: Run industrial_ci | ||
uses: ros-industrial/industrial_ci@master | ||
|
@@ -98,12 +79,6 @@ jobs: | |
with: | ||
name: test-results-${{ matrix.env.IMAGE }} | ||
path: ${{ env.BASEDIR }}/target_ws/**/test_results/**/*.xml | ||
- name: Upload clang-tidy changes | ||
uses: rhaschke/upload-git-patch-action@main | ||
if: matrix.env.CLANG_TIDY | ||
with: | ||
name: clang-tidy | ||
path: ${{ env.BASEDIR }}/target_ws/src/$(basename $(pwd)) | ||
- name: Prepare target_ws for cache | ||
run: | | ||
du -sh ${{ env.BASEDIR }}/target_ws | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters