Skip to content

Commit

Permalink
ci: update oneAPI versions with latest available (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhughes-usgs authored Oct 1, 2021
1 parent 006be37 commit 1df6e3d
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 49 deletions.
15 changes: 0 additions & 15 deletions .github/intel-scripts/ifortvars_linux.sh

This file was deleted.

11 changes: 0 additions & 11 deletions .github/intel-scripts/ifortvars_macos.sh

This file was deleted.

4 changes: 2 additions & 2 deletions .github/intel-scripts/install_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ chmod +x webimage.sh
rm -rf webimage.sh
WEBIMAGE_NAME=$(ls -1 webimage_extracted/)
if [ -z "$COMPONENTS" ]; then
sudo webimage_extracted/"$WEBIMAGE_NAME"/bootstrapper -s --action install --eula=accept --continue-with-optional-error=yes --log-dir=.
sudo webimage_extracted/"$WEBIMAGE_NAME"/bootstrapper -s --action install --eula=accept --log-dir=.
installer_exit_code=$?
else
sudo webimage_extracted/"$WEBIMAGE_NAME"/bootstrapper -s --action install --components="$COMPONENTS" --eula=accept --continue-with-optional-error=yes --log-dir=.
sudo webimage_extracted/"$WEBIMAGE_NAME"/bootstrapper -s --action install --components="$COMPONENTS" --eula=accept --log-dir=.
installer_exit_code=$?
fi
rm -rf webimage_extracted
Expand Down
2 changes: 1 addition & 1 deletion .github/intel-scripts/install_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if [ -z "$COMPONENTS" ]; then
sudo /Volumes/"$(basename "$URL" .dmg)"/bootstrapper.app/Contents/MacOS/bootstrapper -s --action install --eula=accept --continue-with-optional-error=yes --log-dir=.
installer_exit_code=$?
else
sudo /Volumes/"$(basename "$URL" .dmg)"/bootstrapper.app/Contents/MacOS/bootstrapper -s --action install --components="$COMPONENTS" --eula=accept --continue-with-optional-error=yes --log-dir=.
sudo /Volumes/"$(basename "$URL" .dmg)"/bootstrapper.app/Contents/MacOS/bootstrapper -s --action install --components="$COMPONENTS" --eula=accept --log-dir=.
installer_exit_code=$?
fi
hdiutil detach /Volumes/"$(basename "$URL" .dmg)" -quiet
Expand Down
6 changes: 3 additions & 3 deletions .github/intel-scripts/install_windows.bat
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ curl.exe --output webimage.exe --url %URL% --retry 5 --retry-delay 5
start /b /wait webimage.exe -s -x -f webimage_extracted --log extract.log
del webimage.exe
if "%COMPONENTS%"=="" (
webimage_extracted\bootstrapper.exe -s --action install --eula=accept --continue-with-optional-error=yes -p=NEED_VS2017_INTEGRATION=0 -p=NEED_VS2019_INTEGRATION=0 --log-dir=.
webimage_extracted\bootstrapper.exe -s --action install --eula=accept -p=NEED_VS2017_INTEGRATION=0 -p=NEED_VS2019_INTEGRATION=0 --log-dir=.
) else (
webimage_extracted\bootstrapper.exe -s --action install --components=%COMPONENTS% --eula=accept --continue-with-optional-error=yes -p=NEED_VS2017_INTEGRATION=0 -p=NEED_VS2019_INTEGRATION=0 --log-dir=.
)
webimage_extracted\bootstrapper.exe -s --action install --components=%COMPONENTS% --eula=accept -p=NEED_VS2017_INTEGRATION=0 -p=NEED_VS2019_INTEGRATION=0 --log-dir=.
)
37 changes: 22 additions & 15 deletions .github/workflows/nightly-build-intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ jobs:
shell: bash

env:
WINDOWS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/irc_nas/17392/w_HPCKit_p_2021.1.0.2682_offline.exe
LINUX_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/irc_nas/17427/l_HPCKit_p_2021.1.0.2684_offline.sh
MACOS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/irc_nas/17398/m_HPCKit_p_2021.1.0.2681_offline.dmg
WINDOWS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/irc_nas/18247/w_HPCKit_p_2021.4.0.3340_offline.exe
LINUX_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/irc_nas/18211/l_HPCKit_p_2021.4.0.3347_offline.sh
MACOS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/irc_nas/18242/m_HPCKit_p_2021.4.0.3389_offline.dmg
WINDOWS_FORTRAN_COMPONENTS: intel.oneapi.win.ifort-compiler
LINUX_FORTRAN_COMPONENTS_WEB: intel.oneapi.lin.ifort-compiler
MACOS_FORTRAN_COMPONENTS: intel.oneapi.mac.ifort-compiler
Expand All @@ -56,7 +56,7 @@ jobs:
uses: actions/cache@v2
with:
path: |
/opt/intel/oneapi/compiler
/opt/intel/oneapi
key: install-${{ env.LINUX_HPCKIT_URL }}-${{ env.LINUX_FORTRAN_COMPONENTS_WEB }}-compiler-${{ hashFiles('**/.github/intel-scripts/cache_exclude_linux.sh') }}

- name: install ifort on linux
Expand All @@ -82,7 +82,7 @@ jobs:
id: cache-install-windows
uses: actions/cache@v2
with:
path: C:\Program Files (x86)\Intel\oneAPI\compiler
path: C:\Program Files (x86)\Intel\oneAPI
key: install-${{ env.WINDOWS_HPCKIT_URL }}-${{ env.WINDOWS_FORTRAN_COMPONENTS }}-compiler-${{ hashFiles('**/.github/intel-scripts/cache_exclude_windows.sh') }}

- name: install ifort on windows
Expand Down Expand Up @@ -145,20 +145,19 @@ jobs:
print("flopy is installed in: {}".format(flopypth))
print("pymake is installed in: {}".format(pymakepth))
- name: Build and zip applications on linux
if: runner.os == 'Linux'
run: |
.github/intel-scripts/ifortvars_linux.sh
- name: Build and zip applications on macos
if: runner.os == 'macOS'
- name: Build and zip applications on linux and MacOS
if: runner.os == 'Linux' || runner.os == 'macOS'
run: |
.github/intel-scripts/ifortvars_macos.sh
source /opt/intel/oneapi/setvars.sh
cd ./modflow6/distribution/
python build_nightly.py -fc ifort
cd ../../
- name: Build and zip applications on windows
- name: Build and zip applications on Windows
if: runner.os == 'Windows'
shell: cmd
run: |
.github/intel-scripts/ifortvars_windows.bat
call ".github/intel-scripts/ifortvars_windows.bat"
- name: Move the build zip file
run: |
Expand Down Expand Up @@ -256,6 +255,14 @@ jobs:
github.event_name == 'push' || github.event_name == 'schedule'

steps:
- name: Delete Older Releases
uses: dev-drprasad/delete-older-releases@v0.2.0
with:
keep_latest: 30
delete_tags: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Download a Build Artifact
uses: actions/download-artifact@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
#
# Uncomment the code below in the event that the oneAPI approach
# needs to be abandoned and we need to return to building MODFLOW 6defaults:
# needs to be abandoned and we need to return to building MODFLOW 6
# executables with gfortran
# jdh - 2/22/2021
#
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Each release also includes a copy of the *'MODFLOW 6 – Description of Input an

Release tags are based on the date (YYYYMMDD) the MODFLOW 6 codes were compiled and the release was made. Previous nightly build releases are retained for 30 days in the event that there are issues with the latest release candidate.

It may be necessary to have gfortran installed locally in order to use the compiled MODFLOW 6 executables, dynamic-linked libraries, and shared objects available in the operating specific release assets associated with the latest and previous release candidates. Additional information on the version of gfortran used to compile the MODFLOW 6 executables, dynamic-linked libraries, and shared objects is provided with each release.

Nightly Build Issues
--------------------
Expand Down

0 comments on commit 1df6e3d

Please sign in to comment.