main.yml: update gcc/ubuntu #37
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a GitHub CI workflow for the NCEPLIBS-nemsio project. | |
# | |
# This workflow runs the intel compiler. | |
# | |
# Ed Hartnett 1/12/23 | |
name: Intel | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
Intel: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
compilers: ["oneapi", "classic"] | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
# See https://software.intel.com/content/www/us/en/develop/articles/oneapi-repo-instructions.html | |
- name: "Install Intel" | |
uses: NOAA-EMC/ci-install-intel-toolkit@develop | |
with: | |
install-mpi: true | |
mpi-wrapper-setup: ${{ matrix.compilers }} | |
- name: "Build dependencies" | |
uses: NOAA-EMC/ci-build-nceplibs@develop | |
with: | |
bacio-version: develop | |
w3emc-version: develop | |
w3emc-cmake-args: -DBUILD_WITH_BUFR=OFF | |
key-prefix: Intel- | |
key-suffix: -1 | |
- name: Build and test | |
run: | | |
cmake -B build -DCMAKE_PREFIX_PATH="$GITHUB_WORKSPACE/nceplibs/NCEPLIBS-bacio;$GITHUB_WORKSPACE/nceplibs/NCEPLIBS-w3emc" | |
cmake --build build --parallel 2 --verbose | |
ctest --test-dir build --verbose --output-on-failure --rerun-failed |