Skip to content

Commit

Permalink
debug: remove cache
Browse files Browse the repository at this point in the history
  • Loading branch information
fmauch committed Nov 21, 2023
1 parent 7f55d4c commit a0f82db
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/reusable_ici.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ jobs:
reusable_ici:
name: ${{ inputs.ros_distro }} ${{ inputs.ros_repo }} ${{ inputs.os_code_name }}
runs-on: ubuntu-latest
env:
CCACHE_DIR: ${{ github.workspace }}/${{ inputs.ccache_dir }}
BASEDIR: ${{ github.workspace }}/${{ inputs.basedir }}
CACHE_PREFIX: ${{ inputs.ros_distro }}-${{ inputs.upstream_workspace }}-${{ inputs.ros_repo }}-${{ github.job }}
#env:
#CCACHE_DIR: ${{ github.workspace }}/${{ inputs.ccache_dir }}
#BASEDIR: ${{ github.workspace }}/${{ inputs.basedir }}
#CACHE_PREFIX: ${{ inputs.ros_distro }}-${{ inputs.upstream_workspace }}-${{ inputs.ros_repo }}-${{ github.job }}
steps:
- name: Checkout ${{ inputs.ref }} when build is not scheduled
if: ${{ github.event_name != 'schedule' }}
Expand All @@ -55,31 +55,31 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref_for_scheduled_build }}
- name: cache target_ws
if: ${{ ! matrix.env.CCOV }}
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: cache target_ws
#if: ${{ ! matrix.env.CCOV }}
#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 }}
- uses: 'ros-industrial/industrial_ci@master'
env:
UPSTREAM_WORKSPACE: ${{ inputs.upstream_workspace }}
ROS_DISTRO: ${{ inputs.ros_distro }}
ROS_REPO: ${{ inputs.ros_repo }}
- name: prepare target_ws for cache
if: ${{ always() && ! matrix.env.CCOV }}
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
#- name: prepare target_ws for cache
#if: ${{ always() && ! matrix.env.CCOV }}
#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

0 comments on commit a0f82db

Please sign in to comment.