-
Notifications
You must be signed in to change notification settings - Fork 8
53 lines (45 loc) · 1.21 KB
/
dev.yml
File metadata and controls
53 lines (45 loc) · 1.21 KB
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
name: Development
on:
push:
branches: ['main', 'release/*']
pull_request:
jobs:
test:
runs-on: ubuntu-22.04
permissions:
contents: read
strategy:
matrix:
include:
- spack_ref: develop
packages_ref: develop
- spack_ref: releases/v1.0
packages_ref: v2025.11.0
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Spack
uses: ./
with:
spack_ref: ${{ matrix.spack_ref }}
packages_ref: ${{ matrix.packages_ref }}
buildcache: true
color: true
- name: Version check
run: spack --version
- name: Check build cache config
run: spack config blame mirrors
- name: Check packages repository config
run: spack config blame repos
- name: Check build cache install in active env with spack-bash shell
shell: spack-bash {0}
run: |
spack env activate
spack install --add --cache-only --reuse python
which python3
python3 -c 'print("hello world")'
- name: Check spack-sh shell
shell: spack-sh {0}
run: |
spack env activate
spack env status