-
Notifications
You must be signed in to change notification settings - Fork 9
119 lines (115 loc) · 4.53 KB
/
linux.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# Test all Spack build modes in linux
name: linux
on:
pull_request:
branches: [ main ]
env:
BASE_PACKAGES: binutils gcc g++ gfortran cmake python3 perl git git-lfs curl wget tar unzip build-essential
jobs:
# Tests uberenv-pkg Spack build mode
build_uberenv_mode:
name: Uberenv Build Mode (Linux)
runs-on: ubuntu-latest
steps:
- name: Install Deps
run: |
sudo apt-get update
sudo apt-get install $BASE_PACKAGES
- uses: actions/checkout@v3
- name: Run Uberenv
run: |
cd .ci/test-project
python3 ../../uberenv.py --project-json=uberenv_configs/uberenv-pkg.json --spack-env-file=spack_configs/linux_ubuntu_22/spack.yaml
cat uberenv_libs/*.cmake
# Tests dev-build Spack build mode
build_dev_build_full_mode:
name: Dev Build Full Mode (Linux)
runs-on: ubuntu-latest
steps:
- name: Install Deps
run: |
sudo apt-get update
sudo apt-get install $BASE_PACKAGES
- uses: actions/checkout@v3
- name: Run Uberenv
run: |
cp .ci/test-project/packages/magictestlib.tar.gz . && tar -xvf magictestlib.tar.gz && cp src/* .
cd .ci/test-project
python3 ../../uberenv.py --project-json=uberenv_configs/dev-build.json --spack-env-file=spack_configs/linux_ubuntu_22/spack.yaml
./uberenv_libs/spack/opt/spack/linux-*/gcc-*/magictestlib_cached-1.0.0-*/bin/uberenv_conduit_hello
# Tests install Spack build mode
build_install_full_mode:
name: Install Full Mode (Linux)
runs-on: ubuntu-latest
steps:
- name: Install Deps
run: |
sudo apt-get update
sudo apt-get install $BASE_PACKAGES
- uses: actions/checkout@v3
- name: Run Uberenv
run: |
cd .ci/test-project
python3 ../../uberenv.py --project-json=uberenv_configs/install.json --spack-env-file=spack_configs/linux_ubuntu_22/spack.yaml
./uberenv_libs/magictestlib_cached-install/bin/uberenv_conduit_hello
# Tests dev-build Spack build mode stopping at initconfig phase
build_dev_build_initconfig_mode:
name: Dev Build Initconfig Mode (Linux)
runs-on: ubuntu-latest
steps:
- name: Install Deps
run: |
sudo apt-get update
sudo apt-get install $BASE_PACKAGES
- uses: actions/checkout@v3
- name: Run Uberenv
run: |
cp .ci/test-project/packages/magictestlib.tar.gz . && tar -xvf magictestlib.tar.gz && cp src/* .
cd .ci/test-project
python3 ../../uberenv.py --project-json=uberenv_configs/dev-build.json --spack-env-file=spack_configs/linux_ubuntu_22/spack.yaml --package-final-phase=initconfig
# Tests install Spack build mode stopping at initconfig phase
build_install_initconfig_mode:
name: Install Initconfig Mode (Linux)
runs-on: ubuntu-latest
steps:
- name: Install Deps
run: |
sudo apt-get update
sudo apt-get install $BASE_PACKAGES
- uses: actions/checkout@v3
- name: Run Uberenv
run: |
cd .ci/test-project
python3 ../../uberenv.py --project-json=uberenv_configs/install.json --spack-env-file=spack_configs/linux_ubuntu_22/spack.yaml --package-final-phase=initconfig
# Tests install Spack build mode with setup-only and skip-setup options
build_setup_options_mode:
name: Testing Setup-only and Skip-setup (Linux)
runs-on: ubuntu-latest
steps:
- name: Install Deps
run: |
sudo apt-get update
sudo apt-get install $BASE_PACKAGES
- uses: actions/checkout@v3
- name: Run Uberenv
run: |
cd .ci/test-project
python3 ../../uberenv.py --project-json=uberenv_configs/install.json --spack-env-file=spack_configs/linux_ubuntu_22/spack.yaml --setup-only
python3 ../../uberenv.py --project-json=uberenv_configs/install.json --spack-env-file=spack_configs/linux_ubuntu_22/spack.yaml --skip-setup
./uberenv_libs/magictestlib_cached-install/bin/uberenv_conduit_hello
# Tests install Spack build mode and generating a spack.yaml
build_spack_yaml:
name: Generate spack.yaml (Linux)
runs-on: ubuntu-latest
steps:
- name: Install Deps
run: |
sudo apt-get update
sudo apt-get install $BASE_PACKAGES
- uses: actions/checkout@v3
- name: Run Uberenv
run: |
cd .ci/test-project
python3 ../../uberenv.py --project-json=uberenv_configs/install.json --spec="%gcc ^[email protected]"
./uberenv_libs/magictestlib_cached-install/bin/uberenv_conduit_hello
cat ./uberenv_libs/spack.yaml