File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,39 +16,24 @@ jobs:
1616 - compiler_driver : g++
1717 compiler_prefix : /usr/bin
1818 steps :
19- - id : get-sha
20- run : echo ::set-output name=sha::$( curl https://api.github.com/repos/kokkos/mdspan/git/ref/heads/stable | jq .object.sha | tr -d '"' )
21-
22- - name : Determine whether mdspan needs to be rebuilt
23- id : cache-mdspan
24- uses : actions/cache@v2
25- with :
26- path : mdspan-install
27- key : mdspan-stable-${{ steps.get-sha.outputs.sha }}
28-
2919 - name : Create Build Environment
30- if : steps.cache-mdspan.outputs.cache-hit != 'true'
3120 run : cmake -E make_directory mdspan-build
3221
3322 - name : Check Out
34- if : steps.cache-mdspan.outputs.cache-hit != 'true'
3523 uses : actions/checkout@v2
3624 with :
3725 repository : kokkos/mdspan
3826 path : mdspan-src
3927
4028 - name : Configure CMake
41- if : steps.cache-mdspan.outputs.cache-hit != 'true'
4229 working-directory : mdspan-build
4330 run : cmake $GITHUB_WORKSPACE/mdspan-src -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/mdspan-install
4431
4532 - name : Build
46- if : steps.cache-mdspan.outputs.cache-hit != 'true'
4733 working-directory : mdspan-build
4834 run : make
4935
5036 - name : Install
51- if : steps.cache-mdspan.outputs.cache-hit != 'true'
5237 working-directory : mdspan-build
5338 run : make install
5439
You can’t perform that action at this time.
0 commit comments