Skip to content

Commit

Permalink
ci(win): simplify ifx actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoklee committed Apr 19, 2024
1 parent 3104fab commit 2ba1780
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 39 deletions.
25 changes: 6 additions & 19 deletions .github/workflows/win-ninja-icx-f-sh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,19 @@ jobs:
build:
runs-on: windows-latest
steps:
- name: Install CMake and Ninja
- name: cmake
uses: lukka/get-cmake@latest
with:
cmakeVersion: "3.27.6"
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v2
with:
version: "15"
- name: Install Intel OneAPI
- name: ifx
uses: awvwgk/setup-fortran@main
with:
compiler: intel
version: '2024.1'
- name: Checkout HDF5
- name: checkout
uses: actions/checkout@v4.1.1
- name: Set oneAPI
- name: test
shell: cmd
run: |
"C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
- name: Configure & Build & Test
shell: cmd
run: |
cd hdf5
mkdir build
cd build
cmake -G Ninja -DCMAKE_C_COMPILER="C:/Program Files (x86)/Intel/oneAPI/compiler/2024.1.0/windows/bin/icx.exe" -DCMAKE_Fortran_COMPILER="C:/Program Files (x86)/Intel/oneAPI/compiler/2024.1.0/windows/bin/ifx.exe" -DHDF5_BUILD_FORTRAN:BOOL=ON -DHDF5_ENABLE_SZIP_SUPPORT:BOOL=OFF -DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=OFF ..
ninja
ninja test
cmake -G Ninja -DCMAKE_C_COMPILER="C:/Program Files (x86)/Intel/oneAPI/compiler/2024.1/bin/icx.exe" -DCMAKE_Fortran_COMPILER="C:/Program Files (x86)/Intel/oneAPI/compiler/2024.1/bin/ifx.exe" -DHDF5_BUILD_FORTRAN:BOOL=ON -DHDF5_ENABLE_SZIP_SUPPORT:BOOL=OFF -DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=OFF -DCTEST_DROP_SITE_INIT=my.cdash.org -DSITE=win -DBUILDNAME="ninja/icx/+f" ..
ctest -D Experimental -C Release
27 changes: 7 additions & 20 deletions .github/workflows/win-ninja-icx-f.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,24 @@ on:
push:
branches:
- develop

jobs:
build:
runs-on: windows-latest
steps:
- name: Install CMake and Ninja
- name: cmake
uses: lukka/get-cmake@latest
with:
cmakeVersion: "3.27.6"
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v2
with:
version: "15"
- name: Install Intel OneAPI
- name: ifx
uses: awvwgk/setup-fortran@main
with:
compiler: intel
version: '2024.1'
- name: Checkout HDF5
- name: checkout
uses: actions/checkout@v4.1.1
- name: Set oneAPI
- name: test
shell: cmd
run: |
"C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
- name: Configure & Build & Test
shell: cmd
run: |
cd hdf5
set
mkdir build
cd build
cmake -G Ninja -DCMAKE_C_COMPILER="C:/Program Files (x86)/Intel/oneAPI/compiler/2024.1.0/windows/bin/icx.exe" -DCMAKE_Fortran_COMPILER="C:/Program Files (x86)/Intel/oneAPI/compiler/2024.1.0/windows/bin/ifx.exe" -DBUILD_SHARED_LIBS:BOOL=OFF -DHDF5_BUILD_FORTRAN:BOOL=ON -DHDF5_ENABLE_SZIP_SUPPORT:BOOL=OFF -DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=OFF ..
ninja
ninja test
cmake -G Ninja -DBUILD_SHARED_LIBS:BOOL=OFF -DHDF5_BUILD_FORTRAN:BOOL=ON -DHDF5_ENABLE_SZIP_SUPPORT:BOOL=OFF -DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=OFF -DCTEST_DROP_SITE_INIT=my.cdash.org -DSITE=win -DBUILDNAME="ninja/icx/+f/-sh" ..
ctest -D Experimental -C Release

0 comments on commit 2ba1780

Please sign in to comment.