diff --git a/.github/workflows/intel.yml b/.github/workflows/intel.yml index e817a5961..0e9b88164 100644 --- a/.github/workflows/intel.yml +++ b/.github/workflows/intel.yml @@ -16,7 +16,7 @@ jobs: CXX: icpc strategy: matrix: - os: [ubuntu-20.04] + os: [ubuntu-latest] steps: diff --git a/.github/workflows/linux-mac-nceplibs-mpi.yml b/.github/workflows/linux-mac-nceplibs-mpi.yml index 0fa9f8d20..51ce41518 100644 --- a/.github/workflows/linux-mac-nceplibs-mpi.yml +++ b/.github/workflows/linux-mac-nceplibs-mpi.yml @@ -14,7 +14,7 @@ jobs: CXX: g++-9 strategy: matrix: - os: [macos-10.15, ubuntu-20.04] + os: [macos-latest, ubuntu-latest] compiler: [gcc-9] nceplibs_version: [develop, 1.4.0] mpi_type: [mpich, openmpi] @@ -25,11 +25,11 @@ jobs: - name: install-dependencies run: | echo "$HOME/mpi/bin" >> $GITHUB_PATH - if [[ ${{ matrix.os }} == "ubuntu-20.04" ]]; then + if [[ ${{ matrix.os }} == "ubuntu-latest" ]]; then sudo apt-get update sudo apt-get install libpng-dev sudo apt-get install libjpeg-dev - elif [[ ${{ matrix.os }} == "macos-10.15" ]]; then + elif [[ ${{ matrix.os }} == "macos-latest" ]]; then brew update brew install wget if [[ ${{ matrix.compiler }} == "gcc-9" ]]; then @@ -61,9 +61,9 @@ jobs: wget https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-4.1.1.tar.gz &> /dev/null tar -xzf openmpi-4.1.1.tar.gz cd openmpi-4.1.1 - if [[ ${{ matrix.os }} == "ubuntu-20.04" ]]; then + if [[ ${{ matrix.os }} == "ubuntu-latest" ]]; then ./configure --prefix=$HOME/mpi --enable-mpi-fortran --enable-mpi-cxx - elif [[ ${{ matrix.os }} == "macos-10.15" ]]; then + elif [[ ${{ matrix.os }} == "macos-latest" ]]; then ./configure --prefix=$HOME/mpi --enable-mpi-fortran --enable-mpi-cxx --enable-two-level-namespace fi make -j2