Fixed hardware interface initialization (#14) #22
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
name: Build Galactic | |
on: | |
workflow_dispatch: | |
branches: | |
- galactic | |
pull_request: | |
branches: | |
- galactic | |
push: | |
branches: | |
- galactic | |
jobs: | |
industrial_ci: | |
name: galactic-main | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
env: | |
- ROS_DISTRO: galactic | |
ROS_REPO: main | |
env: | |
BEFORE_INSTALL_TARGET_DEPENDENCIES: 'sudo apt-get -qq update && sudo apt-get install -y pkg-config libasio-dev libcurlpp-dev libcurl4-openssl-dev' | |
CCACHE_DIR: ${{ github.workspace }}/.ccache | |
BASEDIR: ${{ github.workspace }}/.work | |
CACHE_PREFIX: galactic-main | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: galactic | |
# The target directory cache doesn't include the source directory because | |
# that comes from the checkout. See "prepare target_ws for cache" task below | |
- name: cache target_ws | |
uses: pat-s/[email protected] | |
with: | |
path: ${{ env.BASEDIR }}/target_ws | |
key: target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}-${{ github.run_id }} | |
restore-keys: | | |
target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }} | |
- name: cache ccache | |
uses: pat-s/[email protected] | |
with: | |
path: ${{ env.CCACHE_DIR }} | |
key: ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }} | |
restore-keys: | | |
ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }} | |
ccache-${{ env.CACHE_PREFIX }} | |
- name: industrial_ci | |
uses: "ros-industrial/industrial_ci@master" | |
env: ${{ matrix.env }} | |
- name: upload test artifacts (on failure) | |
uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: test-results | |
path: ${{ env.BASEDIR }}/target_ws/**/test_results/**/*.xml | |
- name: prepare target_ws for cache | |
if: ${{ always()}} | |
run: | | |
du -sh ${{ env.BASEDIR }}/target_ws | |
sudo find ${{ env.BASEDIR }}/target_ws -wholename '*/test_results/*' -delete | |
sudo rm -rf ${{ env.BASEDIR }}/target_ws/src | |
du -sh ${{ env.BASEDIR }}/target_ws |