Skip to content

Commit

Permalink
check-cache id
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelyr committed Oct 24, 2024
1 parent 116657d commit f07219c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/actions/install-repo/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ runs:

- name: Check Cache
uses: actions/cache@v3
id: build-kokkos
id: check-cache
with:
key: build-${{inputs.repo-name}}
path: ${{ runner.temp }}/build-${{inputs.repo-name}}

- name: Checkout Repo
if: ${{ !steps[format('build-{0}', inputs.repo-name)].outputs.cache-hit }}
if: ${{ !steps.check-cache.outputs.cache-hit }}
uses: actions/checkout@v3
with:
repository: ${{inputs.repo-path}}
Expand All @@ -31,12 +31,12 @@ runs:

- name: Configure CMake
shell: bash
if: ${{ !steps[format('build-{0}', inputs.repo-name)].outputs.cache-hit }}
if: ${{ !steps.check-cache.outputs.cache-hit }}
run: cmake -S $GITHUB_WORKSPACE/${{inputs.repo-name}} -B ${{ runner.temp }}/build-${{inputs.repo-name}}
-DCMAKE_INSTALL_PREFIX=${{ runner.temp }}/build-${{inputs.repo-name}}/install
${{inputs.options}}

- name: Build Cmake
shell: bash
if: ${{ !steps[format('build-{0}', inputs.repo-name)].outputs.cache-hit }}
if: ${{ !steps.check-cache.outputs.cache-hit }}
run: cmake --build ${{ runner.temp }}/build-${{inputs.repo-name}} -j8 --target install

0 comments on commit f07219c

Please sign in to comment.