Skip to content

Commit 6a53d6f

Browse files
authored
Merge pull request #36 from zoziha/ci-1
Add test CI for Linux-ifort
2 parents c1a11e9 + d9357b9 commit 6a53d6f

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/fpm.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,48 @@ jobs:
8080
- name: fpm test
8181
run: |
8282
fpm test
83+
84+
intel-build:
85+
runs-on: ubuntu-latest
86+
strategy:
87+
fail-fast: false
88+
89+
env:
90+
FPM_FC: ifort
91+
FC: ifort
92+
93+
steps:
94+
- name: Checkout code
95+
uses: actions/checkout@v3
96+
97+
- name: Add Intel repository (Linux)
98+
run: |
99+
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
100+
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
101+
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
102+
echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
103+
sudo apt-get update
104+
105+
- name: Install Intel oneAPI compiler (Linux)
106+
run: |
107+
sudo apt-get install intel-oneapi-compiler-fortran
108+
109+
- name: Setup Intel oneAPI environment
110+
run: |
111+
source /opt/intel/oneapi/setvars.sh
112+
printenv >> $GITHUB_ENV
113+
114+
- name: Install fpm
115+
uses: fortran-lang/setup-fpm@v3
116+
with:
117+
fpm-version: 'v0.7.0'
118+
119+
- name: fpm build
120+
run: |
121+
ifort --version
122+
fpm --version
123+
fpm build --profile debug --flag "-warn nointerfaces"
124+
125+
- name: fpm test
126+
run: |
127+
fpm test --profile debug --flag "-warn nointerfaces"

0 commit comments

Comments
 (0)