File tree 2 files changed +46
-0
lines changed
2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,44 @@ jobs:
157
157
- run : test ${{ steps.setup3.outputs.mpi }} == intelmpi
158
158
- run : command -v impi_info
159
159
160
+ container :
161
+ runs-on : ubuntu-latest
162
+ strategy :
163
+ fail-fast : false
164
+ matrix :
165
+ image :
166
+ - debian
167
+ - ubuntu
168
+ container : ${{ matrix.image }}
169
+ steps :
170
+
171
+ - name : Checkout
172
+ uses : actions/checkout@v3
173
+
174
+ - name : Setup MPICH
175
+ id : setup1
176
+ uses : ./
177
+ with :
178
+ mpi : mpich
179
+ - run : test ${{ steps.setup1.outputs.mpi }} = mpich
180
+ - run : command -v mpichversion
181
+
182
+ - name : Setup Open MPI
183
+ id : setup2
184
+ uses : ./
185
+ with :
186
+ mpi : openmpi
187
+ - run : test ${{ steps.setup2.outputs.mpi }} = openmpi
188
+ - run : command -v ompi_info
189
+
190
+ - name : Setup Intel MPI
191
+ id : setup3
192
+ uses : ./
193
+ with :
194
+ mpi : intelmpi
195
+ - run : test ${{ steps.setup3.outputs.mpi }} = intelmpi
196
+ - run : command -v impi_info
197
+
160
198
macOS :
161
199
runs-on : macos-latest
162
200
steps :
Original file line number Diff line number Diff line change @@ -18,7 +18,15 @@ case $MPI in
18
18
;;
19
19
esac
20
20
21
+ sudo () {
22
+ [ $( id -u) -eq 0 ] || set -- command sudo " $@ "
23
+ " $@ "
24
+ }
25
+
21
26
setup-apt-intel-oneapi () {
27
+ # ensure the required packages are installed
28
+ sudo apt update
29
+ sudo apt install -y -q ca-certificates curl gnupg procps
22
30
apt_repo_url=https://apt.repos.intel.com/
23
31
gpg_key_url=$apt_repo_url /intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
24
32
keyring=/usr/share/keyrings/oneapi-archive-keyring.gpg
You can’t perform that action at this time.
0 commit comments