forked from JCSDA/spack-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (56 loc) · 1.99 KB
/
macos-dom.yaml
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
55
56
57
58
59
60
61
62
63
64
name: macos-dom-build
on:
# uncomment if we decide to run tests when merging to develop branch
#push:
# # merges to develop branch
# branches: [develop]
pull_request:
# pull request to develop with a label
types: [labeled]
branches: [develop]
workflow_dispatch:
inputs:
template:
description: 'Base spack.yaml template. Default is a complete JEDI-UFS environment.'
required: true
default: 'skylab-dev'
specs:
description: 'Which specs to add to the template. Default is none (empty string).'
required: false
default: ''
# Use custom shell with -l so .bash_profile is sourced
defaults:
run:
shell: bash -leo pipefail {0}
jobs:
macos-dom-build:
if: ${{ github.event.label.name == 'run-macos-dom' }} || ${{ inputs.template }}
runs-on: [self-hosted, macOS, X64, macos-dom]
steps:
- name: checkout
uses: actions/checkout@v2
with:
submodules: true
- name: create-env
run: |
source ./setup.sh
spack stack create env --site macos.default --template ${{ inputs.template || 'skylab-dev' }} --name ${{ inputs.template || 'skylab-dev' }}.macos-dom
spack env activate -d envs/${{ inputs.template || 'skylab-dev' }}.macos-dom
spack add ${{ inputs.specs || '' }}
spack external find
spack external find perl
spack external find python
spack external find wget
PATH="/usr/local/opt/qt@5/bin:${PATH}" spack external find qt
PATH="/usr/local/opt/curl/bin:${PATH}" spack external find curl
spack compiler find
## https://github.com/dtcenter/MET/issues/2239
#spack remove global-workflow-env
spack concretize
spack install --fail-fast
# Skip this - takes forever and isn't necessary
#- name: upload-mirror
# uses: actions/upload-artifact@v2
# with:
# name: spack_mirror
# path: cache/source_cache