Skip to content

Commit

Permalink
testing adding build cache (#1)
Browse files Browse the repository at this point in the history
* testing adding build cache
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Dec 1, 2021
1 parent 879f4ec commit 981c122
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build-cache.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Spack Build Cache

on:
schedule:
- cron: "0 * * * *"

jobs:
install-spack:
runs-on: ubuntu-latest
name: Install Spack
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Spack
uses: vsoch/spack-package-action/install@main

build-env-binaries:
runs-on: ubuntu-latest
permissions:
packages: write
name: Build Environment Binaries
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
- name: Prepare for Environment Install
run: |
git submodule init
git submodule update
- name: Build Environment
uses: vsoch/spack-package-action/envpackage@main
with:
spack_yaml: .spack_env/ci/spack.yaml
token: ${{ secrets.GITHUB_TOKEN }}
deploy: ${{ github.event_name != 'pull_request' }}

- name: Update Build Cache
uses: vsoch/spack-package-action/buildcache@main
with:
token: ${{ secrets.DEPLOY_TOKEN }}
user: ${{ secrets.DEPLOY_USER }}
deploy: false
24 changes: 24 additions & 0 deletions .spack_env/ci/spack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#
# It describes a set of packages to be installed, along with
# configuration settings.
spack:
repos: [../../.spack_packages/]
specs: [umpire@develop]
view: false
packages:
camp:
version: [0.1.0]
target: []
compiler: []
buildable: true
providers: {}
blt:
version: [develop]
target: []
compiler: []
buildable: true
providers: {}
develop:
umpire:
path: ../../
spec: umpire@develop

0 comments on commit 981c122

Please sign in to comment.