Skip to content

Commit

Permalink
[ci] use hendrikmuhs/[email protected] for proper use of ccache
Browse files Browse the repository at this point in the history
  • Loading branch information
evaleev committed Sep 25, 2024
1 parent b1210c4 commit 144c55b
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,10 @@ jobs:
sudo ln -s /usr/lib/x86_64-linux-gnu/libscalapack-openmpi.so /usr/lib/x86_64-linux-gnu/libscalapack.so
echo "MPIEXEC=/usr/bin/mpiexec" >> $GITHUB_ENV
- name: Prepare ccache timestamp
id: ccache_cache_timestamp
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- name: Setup ccache cache files
uses: actions/[email protected]
- name: Setup ccache
uses: hendrikmuhs/[email protected]
with:
path: ${{github.workspace}}/build/.ccache
key: ${{ matrix.config.name }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
restore-keys: |
${{ matrix.config.name }}-ccache-
key: ccache-${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.task_backend }}

- name: "Configure build: ${{ env.BUILD_CONFIG }}"
shell: bash
Expand Down

0 comments on commit 144c55b

Please sign in to comment.