Skip to content

Commit

Permalink
Set install flags via command line
Browse files Browse the repository at this point in the history
  • Loading branch information
alecbcs committed Nov 14, 2023
1 parent f60eed0 commit f412480
Showing 1 changed file with 31 additions and 7 deletions.
38 changes: 31 additions & 7 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ jobs:
. workspace/saxpy/openmp/x86/ramble/share/ramble/setup-env.sh
spack mirror add ci-buildcache oci://ghcr.io/llnl/benchpark-binary-cache
spack config add "packages:all:target:[x86_64_v3]"
ramble config add "config:spack:flags:install:'--reuse --no-check-signature'"
spack config add "packages:all:target:[x86_64_v3]""
env | grep SPACK >> "$GITHUB_ENV"
env | grep RAMBLE >> "$GITHUB_ENV"
Expand All @@ -35,20 +34,45 @@ jobs:
- name: Setup Saxpy Workspace
working-directory: ./workspace/saxpy/openmp/x86/workspace/
run: |
ramble --workspace-dir . --disable-progress-bar --disable-logger workspace setup
ramble \
--workspace-dir . \
--disable-progress-bar \
--disable-logger \
-c config:spack_flags:install:'--no-check-signature' \
workspace setup
- name: Run Saxpy Experiments
working-directory: ./workspace/saxpy/openmp/x86/workspace/
run: |
ramble -c variables:n_nodes:1 -c variables:n_ranks:1 --workspace-dir . --disable-progress-bar --disable-logger on
ramble \
-c variables:n_nodes:1 \
-c variables:n_ranks:1 \
--workspace-dir . \
--disable-progress-bar \
--disable-logger \
on
- name: Analyze Saxpy Results
working-directory: ./workspace/saxpy/openmp/x86/workspace/
run: |
ramble --workspace-dir . --disable-progress-bar --disable-logger workspace analyze
ramble \
--workspace-dir . \
--disable-progress-bar \
--disable-logger \
workspace analyze
- name: Upload Binaries to CI Cache
if: github.ref == 'refs/heads/develop'
run: |
spack mirror set --push --oci-username ${{ github.actor }} --oci-password "${{ secrets.GITHUB_TOKEN }}" ci-buildcache
spack buildcache push -j $(($(nproc) + 1)) --base-image ubuntu:22.04 --unsigned --update-index ci-buildcache $(spack find --format '/{hash}')
spack mirror set \
--push \
--oci-username ${{ github.actor }} \
--oci-password "${{ secrets.GITHUB_TOKEN }}" \
ci-buildcache
spack buildcache push \
-j $(($(nproc) + 1)) \
--base-image ubuntu:22.04 \
--unsigned \
--update-index ci-buildcache \
$(spack find --format '/{hash}')

0 comments on commit f412480

Please sign in to comment.