File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,44 @@ jobs:
157157 - run : test ${{ steps.setup3.outputs.mpi }} == intelmpi
158158 - run : command -v impi_info
159159
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+
160198 macOS :
161199 runs-on : macos-latest
162200 steps :
Original file line number Diff line number Diff line change @@ -18,7 +18,15 @@ case $MPI in
1818 ;;
1919esac
2020
21+ sudo () {
22+ [ $( id -u) -eq 0 ] || set -- command sudo " $@ "
23+ " $@ "
24+ }
25+
2126setup-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
2230 apt_repo_url=https://apt.repos.intel.com/
2331 gpg_key_url=$apt_repo_url /intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
2432 keyring=/usr/share/keyrings/oneapi-archive-keyring.gpg
You can’t perform that action at this time.
0 commit comments