Skip to content

Commit 059c8d1

Browse files
author
Anand
committed
ci
1 parent 7550791 commit 059c8d1

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ jobs:
2121
name: Github
2222
strategy:
2323
matrix:
24-
os: ['ubuntu', 'macos']
24+
os: ['ubuntu']
2525
mpi: ['mpi', 'no-mpi']
2626
debug: ['debug', 'no-debug']
2727
intel: [true, false]
2828
fail-fast: false
29-
if: matrix.os == 'ubuntu' && matrix.intel == true
3029
continue-on-error: true
3130
runs-on: ${{ matrix.os }}-latest
3231
steps:
@@ -75,15 +74,25 @@ jobs:
7574
echo "MPI_HOME=/opt/intel/oneapi/mpi/2021.7.1/" >> $GITHUB_ENV
7675
echo "I_MPI_ROOT=/opt/intel/oneapi/mpi/2021.7.1/" >> $GITHUB_ENV
7776
78-
- name: Build
79-
run: |
80-
source /opt/intel/oneapi/setvars.sh
81-
/bin/bash mfc.sh build -j $(nproc) --${{ matrix.debug }} --${{ matrix.mpi }}
77+
if: matrix.intel == true
78+
- name: Build
79+
run: |
80+
source /opt/intel/oneapi/setvars.sh
81+
/bin/bash mfc.sh build -j $(nproc) --${{ matrix.debug }} --${{ matrix.mpi }}
8282
83-
- name: Test
84-
run: |
85-
source /opt/intel/oneapi/setvars.sh
86-
/bin/bash mfc.sh test -j $(nproc) $(if [ "${{ matrix.mpi }}" == "mpi" ]; then echo "--test-all"; fi)
83+
- name: Test
84+
run: |
85+
source /opt/intel/oneapi/setvars.sh
86+
/bin/bash mfc.sh test -j $(nproc) $(if [ "${{ matrix.mpi }}" == "mpi" ]; then echo "--test-all"; fi)
87+
88+
if: matrix.intel == false
89+
- name: Build
90+
run: |
91+
/bin/bash mfc.sh build -j $(nproc) --${{ matrix.debug }} --${{ matrix.mpi }}
92+
93+
- name: Test
94+
run: |
95+
/bin/bash mfc.sh test -j $(nproc) $(if [ "${{ matrix.mpi }}" == "mpi" ]; then echo "--test-all"; fi)
8796
8897
docker:
8998
name: Github | Docker

0 commit comments

Comments
 (0)