-
Notifications
You must be signed in to change notification settings - Fork 2
187 lines (159 loc) · 5.8 KB
/
test_installer.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
name: Check Installer (scheduled)
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '30 5 * * 1'
jobs:
install-mss-on-linux-from-scratch:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- name: Install mambaforge+MSS
run: |
cd $GITHUB_WORKSPACE
chmod +x LinuxMac.sh
./LinuxMac.sh -a
- name: Test MSS installed by direct call
run: |
/home/runner/mambaforge/envs/mssenv/bin/msui --version | grep "Mission Support System (MSS)"
- name: Test MSS installed in activated env
run: |
. /home/runner/mambaforge/etc/profile.d/conda.sh
. /home/runner/mambaforge/etc/profile.d/mamba.sh
mamba init
mamba activate mssenv
msui --version | grep "Mission Support System (MSS)"
install-mss-on-existing-linux-mambaforge-installation:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- name: Install mambaforge by curl(1/3)
run: |
curl -L0 "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh" --output mambaforge.sh
chmod +x mambaforge.sh
script -q -c "./mambaforge.sh -u -b -p ~/mambaforge"
eval "$(/home/runner/mambaforge/bin/conda shell.bash hook)"
mamba init
- name: check mamba info(2/3)
run: |
eval "$(/home/runner/mambaforge/bin/conda shell.bash hook)"
mamba info
- name: Install MSS by LinuxMac.sh -a (3/3)
run: |
eval "$(/home/runner/mambaforge/bin/conda shell.bash hook)"
cd $GITHUB_WORKSPACE
chmod +x LinuxMac.sh
./LinuxMac.sh -a
- name: Test MSS installed
run: |
/home/runner/mambaforge/envs/mssenv/bin/msui --version | grep "Mission Support System (MSS)"
install-mss-on-macos-from-scratch:
runs-on: macos-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- name: Install mambaforge+MSS
run: |
cd $GITHUB_WORKSPACE
chmod +x LinuxMac.sh
./LinuxMac.sh -a
- name: Test MSS installed
run: |
/Users/runner/mambaforge/envs/mssenv/bin/msui --version | grep "Mission Support System (MSS)"
install-mss-on-existing-macos-mambaforge-installation:
runs-on: macos-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- name: Install mambaforge by curl(1/3)
run: |
curl -L0 "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-MacOSX-x86_64.sh" --output mambaforge.sh
chmod +x mambaforge.sh
script -q output.txt ./mambaforge.sh -u -b -p ~/mambaforge
eval "$(/Users/runner/mambaforge/bin/conda shell.bash hook)"
mamba init
- name: check mamba info(2/3)
run: |
eval "$(/Users/runner/mambaforge/bin/conda shell.bash hook)"
mamba info
- name: Install MSS by LinuxMac.sh -a (3/3)
run: |
eval "$(/Users/runner/mambaforge/bin/conda shell.bash hook)"
cd $GITHUB_WORKSPACE
chmod +x LinuxMac.sh
./LinuxMac.sh -a
- name: Test MSS installed
run: |
/Users/runner/mambaforge/envs/mssenv/bin/msui --version | grep "Mission Support System (MSS)"
install-mss-on-windows-from-scratch:
runs-on: windows-latest
defaults:
run:
shell: cmd
steps:
- uses: actions/checkout@v3
- name: Install mambaforge+MSS (1/2) (needs new shell to recognise mamba)
run: |
cd %GITHUB_WORKSPACE%
Windows.bat -a
- name: Install mambaforge+MSS (2/2)
run: |
cd %GITHUB_WORKSPACE%
set PATH=%PATH%;%USERPROFILE%\mambaforge\condabin
Windows.bat -a
- name: Test MSS installed
run: |
set PATH=%PATH%;%USERPROFILE%\mambaforge\condabin
call conda.bat activate mssenv
msui --version | findstr /i /c:"Mission Support System (MSS)"
install-mamba-on-windows-pwsh:
runs-on: windows-latest
defaults:
run:
shell: powershell
steps:
- uses: actions/checkout@v3
- name: Install mambaforge by curl(1/2)
run: |
curl.exe -fsSLo mambaforge.exe https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Windows-x86_64.exe
Start-Process .\mambaforge.exe -Wait -ArgumentList "/InstallationType=JustMe /RegisterPython=1 /AddToPath=1 /S /D=$($env:USERPROFILE)\mambaforge"
- name: check mamba info(2/2)
run: |
$env:Path += ";$($env:USERPROFILE)\mambaforge\condabin"
mamba info
install-mss-on-existing-windows-mambaforge-installation:
runs-on: windows-latest
defaults:
run:
shell: cmd
steps:
- uses: actions/checkout@v3
- name: Install mambaforge by curl(1/3)
run: |
curl.exe -fsSLo mambaforge.exe https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Windows-x86_64.exe
start /wait "" mambaforge.exe /InstallationType=JustMe /RegisterPython=1 /AddToPath=1 /S /D=%USERPROFILE%\mambaforge
- name: check mamba info(2/3)
run: |
set PATH=%PATH%;%USERPROFILE%\mambaforge\condabin
mamba info
- name: Install MSS by Windows.bat -a (3/3)
run: |
set PATH=%PATH%;%USERPROFILE%\mambaforge\condabin
Windows.bat -a
- name: Test MSS installed
run: |
set PATH=%PATH%;%USERPROFILE%\mambaforge\condabin
call conda.bat activate mssenv
msui --version | findstr /i /c:"Mission Support System (MSS)"