Skip to content

Commit

Permalink
Allow CI to use an unsigned packages from the GH Actions Cache (#56)
Browse files Browse the repository at this point in the history
* Fix buildcache use by allowing unsigned install

* Add argument to ramble config to allow unsigned binary cache

* Set install flags via command line
  • Loading branch information
alecbcs authored Nov 15, 2023
1 parent 7004c59 commit 80eb343
Showing 1 changed file with 31 additions and 6 deletions.
37 changes: 31 additions & 6 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,51 @@ jobs:
spack config add "packages:all:target:[x86_64_v3]"
env | grep SPACK >> "$GITHUB_ENV"
env | grep SPACK >> "$GITHUB_ENV"
env | grep RAMBLE >> "$GITHUB_ENV"
echo "PATH=$PATH" >> "$GITHUB_ENV"
- 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 80eb343

Please sign in to comment.