Skip to content

Commit

Permalink
try checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelyr committed Oct 23, 2024
1 parent d88439a commit 0ac38c3
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/actions/install-repo/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,32 @@ runs:
using: "composite"
steps:

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

- name: ${{inputs.repo-name}} Checkout repo
if: ${{ steps.build-${{inputs.repo-name}}.outputs.cache-hit != 'true' }}
if: ${{ steps.build-kokkos.outputs.cache-hit != 'true' }}
uses: actions/checkout@v3
with:
repository: ${{inputs.repo-path}}
ref: ${{inputs.repo-ref}}
path: ${{inputs.repo-name}}

- name: ${{inputs.repo-name}} Configure CMake
if: ${{ steps.build-${{inputs.repo-name}}.outputs.cache-hit != 'true' }}
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
-DCMAKE_CXX_COMPILER=${{ matrix.compiler }}
-DKokkos_ENABLE_SERIAL=ON
-DKokkos_ENABLE_OPENMP=off
-DKokkos_ENABLE_CUDA=off
-DKokkos_ENABLE_CUDA_LAMBDA=off
-DKokkos_ENABLE_DEBUG=on
# - name: ${{inputs.repo-name}} Configure CMake
# if: ${{ steps.build-${{inputs.repo-name}}.outputs.cache-hit != 'true' }}
# 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
# -DCMAKE_CXX_COMPILER=${{ matrix.compiler }}
# -DKokkos_ENABLE_SERIAL=ON
# -DKokkos_ENABLE_OPENMP=off
# -DKokkos_ENABLE_CUDA=off
# -DKokkos_ENABLE_CUDA_LAMBDA=off
# -DKokkos_ENABLE_DEBUG=on

- name: ${{inputs.repo-name}} Build
if: ${{ steps.build-${{inputs.repo-name}}.outputs.cache-hit != 'true' }}
run: cmake --build ${{ runner.temp }}/build-${{inputs.repo-name}} -j8 --target install
# - name: ${{inputs.repo-name}} Build
# if: ${{ steps.build-${{inputs.repo-name}}.outputs.cache-hit != 'true' }}
# run: cmake --build ${{ runner.temp }}/build-${{inputs.repo-name}} -j8 --target install

0 comments on commit 0ac38c3

Please sign in to comment.