File tree Expand file tree Collapse file tree 3 files changed +41
-12
lines changed Expand file tree Collapse file tree 3 files changed +41
-12
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,20 @@ jobs:
12
12
strategy :
13
13
fail-fast : false
14
14
matrix :
15
- os : [ubuntu-18.04, ubuntu-20.04]
15
+ os :
16
+ - ubuntu-18.04
17
+ - ubuntu-20.04
18
+ - macos-10.15
16
19
17
20
steps :
18
21
19
22
20
- - name : " Set up Spack"
23
+ - name : Set up Spack
21
24
uses : ./
22
25
with :
23
26
os : ${{ matrix.os }}
27
+ ref : develop
24
28
- run : spack --version
25
29
- run : spack config blame config
26
30
- run : spack install zlib
27
- - run : which patchelf
31
+ - run : which patchelf
Original file line number Diff line number Diff line change 1
- name : ' Setup Spack'
2
- description : ' Setup Spack and its dependencies'
1
+ name : " Setup Spack"
2
+ description : " Setup Spack and its dependencies"
3
3
inputs :
4
4
os :
5
- description : ' Runner operating system (ubuntu-18.04, ubuntu20 .04) '
5
+ description : " Operating system (ubuntu-18.04, ubuntu-20 .04, macos-10.15) "
6
6
required : true
7
+ ref :
8
+ description : " Version of Spack (develop, v0.16.2)"
9
+ required : false
10
+ default : develop
7
11
runs :
8
12
using : " composite"
9
13
steps :
10
14
- name : Install Spack's dependencies
11
15
run : |
12
16
curl -LfSs -o spack.tar.zstd https://github.com/haampie-spack/setup-spack/releases/download/develop/${{ inputs.os }}.tar.zst
13
- tar --use-compress-program="zstd" -xf spack.tar.zstd -C ~/
17
+ TAR=tar
18
+ if [ "$RUNNER_OS" == macOS ]; then TAR=gtar; fi
19
+ $TAR --use-compress-program=zstd -xf spack.tar.zstd -C ~/
14
20
echo "$HOME/.setup-spack/view/bin" >> $GITHUB_PATH
15
21
shell : bash
16
22
- name : Install Spack itself
17
23
run : |
18
- git clone --depth 5 https://github.com/spack/spack.git
24
+ git clone https://github.com/spack/spack.git
25
+ (cd spack && git checkout "${{ inputs.ref }}")
19
26
echo "$PWD/spack/bin" >> $GITHUB_PATH
20
27
mkdir ~/.spack
21
28
echo "config:" > ~/.spack/config.yaml
Original file line number Diff line number Diff line change @@ -15,13 +15,31 @@ jobs:
15
15
os :
16
16
- ubuntu-18.04
17
17
- ubuntu-20.04
18
+ - macos-10.15
18
19
19
20
steps :
20
21
21
- - name : " Set up Spack"
22
+ - name : Set up Spack
22
23
uses : haampie-spack/setup-spack@v1
23
24
with :
24
25
os : ${{ matrix.os }}
25
- - run : spack --version
26
- - run : spack install zlib
27
- ` ` `
26
+ ref : develop
27
+ - run : |
28
+ spack --version
29
+ spack install zlib
30
+ ` ` `
31
+
32
+
33
+
34
+ ## How is Spack bootstrapped?
35
+
36
+ This environment is built
37
+
38
+ https://github.com/haampie-spack/setup-spack/blob/rebuild-spack/spack.yaml
39
+
40
+ and the binaries are uploaded as release assets to
41
+
42
+ https://github.com/haampie-spack/setup-spack/releases/tag/develop
43
+
44
+ Todo:
45
+ - [ ] Add checksum verification
You can’t perform that action at this time.
0 commit comments