-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (46 loc) · 1.29 KB
/
dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Development
on:
push:
branches: ['main', 'release/*']
pull_request:
jobs:
test:
runs-on: ubuntu-22.04
strategy:
matrix:
ref:
- develop
- releases/v0.21
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Set up Spack
uses: ./
with:
ref: ${{ matrix.ref }}
buildcache: true
color: true
- name: Version check
run: spack --version
- name: Check build cache config
run: spack config blame mirrors
- name: Check build cache install in active env with spack-bash shell (new style)
shell: spack-bash {0}
run: |
spack env activate
spack install --add --cache-only --reuse python
which python3
python3 -c 'print("hello world")'
if: matrix.ref == 'develop'
- name: Check build cache install in active env with spack-bash shell (old style)
shell: spack-bash {0}
run: |
spack env activate
spack install --add --cache-only --reuse --no-check-signature python
which python3
python3 -c 'print("hello world")'
if: matrix.ref == 'releases/v0.21'
- name: Check spack-sh shell
shell: spack-sh {0}
run: |
spack env activate
spack env status