Skip to content

Commit

Permalink
Merge pull request #239 from amklinv-nnl/remove-mdspan-caching
Browse files Browse the repository at this point in the history
Remove caching of mdspan
  • Loading branch information
mhoemmen authored Jun 21, 2022
2 parents 8c57ebb + 64f5fa1 commit 5969eed
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,24 @@ jobs:
- compiler_driver: g++
compiler_prefix: /usr/bin
steps:
- id: get-sha
run: echo ::set-output name=sha::$( curl https://api.github.com/repos/kokkos/mdspan/git/ref/heads/stable | jq .object.sha | tr -d '"' )

- name: Determine whether mdspan needs to be rebuilt
id: cache-mdspan
uses: actions/cache@v2
with:
path: mdspan-install
key: mdspan-stable-${{ steps.get-sha.outputs.sha }}

- name: Create Build Environment
if: steps.cache-mdspan.outputs.cache-hit != 'true'
run: cmake -E make_directory mdspan-build

- name: Check Out
if: steps.cache-mdspan.outputs.cache-hit != 'true'
uses: actions/checkout@v2
with:
repository: kokkos/mdspan
path: mdspan-src

- name: Configure CMake
if: steps.cache-mdspan.outputs.cache-hit != 'true'
working-directory: mdspan-build
run: cmake $GITHUB_WORKSPACE/mdspan-src -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/mdspan-install

- name: Build
if: steps.cache-mdspan.outputs.cache-hit != 'true'
working-directory: mdspan-build
run: make

- name: Install
if: steps.cache-mdspan.outputs.cache-hit != 'true'
working-directory: mdspan-build
run: make install

Expand Down

0 comments on commit 5969eed

Please sign in to comment.