Skip to content

Commit 901c7d1

Browse files
committed
fix: set SETVARS_COMPLETED after installing/activating Intel toolchain, don't unset local variable in install_intel_apt bash function, test intel and intel-classic on ubuntu-20.04
1 parent 5f9d8c3 commit 901c7d1

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ jobs:
3838
- {compiler: gcc, version: 6}
3939
# {compiler: gcc, version: 5}
4040
include:
41+
- {os: ubuntu-20.04, toolchain: {compiler: intel, version: '2023.2'}}
42+
- {os: ubuntu-20.04, toolchain: {compiler: intel, version: '2022.2.1'}}
43+
- {os: ubuntu-20.04, toolchain: {compiler: intel, version: '2021.4'}}
44+
4145
- {os: ubuntu-22.04, toolchain: {compiler: intel, version: '2023.2'}}
4246
# {os: ubuntu-22.04, toolchain: {compiler: intel, version: '2023.1'}}
4347
# {os: ubuntu-22.04, toolchain: {compiler: intel, version: '2023.0'}}
@@ -51,6 +55,10 @@ jobs:
5155
# {os: ubuntu-22.04, toolchain: {compiler: intel, version: '2021.1.2'}}
5256
# {os: ubuntu-22.04, toolchain: {compiler: intel, version: '2021.1'}}
5357

58+
- {os: ubuntu-20.04, toolchain: {compiler: intel-classic, version: '2021.10'}}
59+
- {os: ubuntu-20.04, toolchain: {compiler: intel-classic, version: '2021.7.1'}}
60+
- {os: ubuntu-20.04, toolchain: {compiler: intel-classic, version: '2021.4'}}
61+
5462
- {os: ubuntu-22.04, toolchain: {compiler: intel-classic, version: '2021.10'}}
5563
# {os: ubuntu-22.04, toolchain: {compiler: intel-classic, version: '2021.9'}}
5664
# {os: ubuntu-22.04, toolchain: {compiler: intel-classic, version: '2021.8'}}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Supported Intel toolchains:
108108
| windows-\* | intel | 2023.2, 2023.1, 2023.0, 2022.2.0, 2022.1.0 |
109109
| windows-\* | intel-classic | 2021.10.0, 2021.9.0, 2021.8.0, 2021.7.0, 2021.6.0 |
110110

111-
**Note:** on macOS the `intel`/`ifx` compiler option is not suppoted, only `intel-classic` with the `ifort` compiler.
111+
**Note:** on macOS the `intel`/`ifx` compiler option is not supported, only `intel-classic` with the `ifort` compiler.
112112

113113
## License
114114

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ runs:
135135
echo CC=$CC>>$GITHUB_ENV
136136
fi
137137
138+
# set flag to indicate that SETVARS has been run
139+
if [[ "${{ inputs.compiler }}" =~ "intel" ]]; then
140+
echo SETVARS_COMPLETED=1>>$GITHUB_ENV
141+
fi
142+
138143
# GitHub Actions prepends GNU linker to the PATH before all bash steps, hide it so MSVC linker is found
139144
- name: Hide GNU linker (Windows)
140145
if: runner.os == 'Windows' && contains(inputs.compiler, 'intel')

setup-fortran.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ install_intel_apt()
281281
$fetch https://apt.repos.intel.com/intel-gpg-keys/$_KEY > $_KEY
282282
sudo apt-key add $_KEY
283283
rm $_KEY
284-
unset $_KEY
285284
echo "deb https://apt.repos.intel.com/oneapi all main" \
286285
| sudo tee /etc/apt/sources.list.d/oneAPI.list
287286
sudo apt-get update

0 commit comments

Comments
 (0)