diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index dbcad8ac6..899065479 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -9,8 +9,8 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-12, windows-latest] - gcc: [10] + os: [ubuntu-latest, macos-13, windows-latest] + gcc: [13] steps: - name: Checkout repository @@ -21,17 +21,17 @@ jobs: run: | brew install gcc@${{ matrix.gcc }} ln -s /usr/local/bin/gfortran-${{ matrix.gcc }} /usr/local/bin/gfortran - # Backport gfortran shared libraries to version 9 folder. This is necessary because all macOS releases of fpm - # have these paths hardcoded in the executable (no PIC?). As the gcc ABIs have not changed from 9 to 10, we - # can just create symbolic links for now. This can be removed when an updated fpm release is built with gcc-10 - mkdir /usr/local/opt/gcc@9 - mkdir /usr/local/opt/gcc@9/lib - mkdir /usr/local/opt/gcc@9/lib/gcc - mkdir /usr/local/opt/gcc@9/lib/gcc/9 - mkdir /usr/local/lib/gcc/9 - ln -fs /usr/local/opt/gcc@${{ matrix.gcc }}/lib/gcc/${{ matrix.gcc }}/libquadmath.0.dylib /usr/local/opt/gcc@9/lib/gcc/9/libquadmath.0.dylib - ln -fs /usr/local/opt/gcc@${{ matrix.gcc }}/lib/gcc/${{ matrix.gcc }}/libgfortran.5.dylib /usr/local/opt/gcc@9/lib/gcc/9/libgfortran.5.dylib - ln -fs /usr/local/lib/gcc/${{ matrix.gcc }}/libgcc_s.1.dylib /usr/local/lib/gcc/9/libgcc_s.1.dylib + # Backport gfortran shared libraries to version 10 folder. This is necessary because all macOS releases of fpm + # have these paths hardcoded in the executable (no PIC?). As the gcc ABIs have not changed from 10 to 13, we + # can just create symbolic links for now. This can be removed when an updated fpm release is built with gcc-13 + mkdir /usr/local/opt/gcc@10 + mkdir /usr/local/opt/gcc@10/lib + mkdir /usr/local/opt/gcc@10/lib/gcc + mkdir /usr/local/opt/gcc@10/lib/gcc/10 + mkdir /usr/local/lib/gcc/10 + ln -fs /usr/local/opt/gcc@${{ matrix.gcc }}/lib/gcc/${{ matrix.gcc }}/libquadmath.0.dylib /usr/local/opt/gcc@10/lib/gcc/10/libquadmath.0.dylib + ln -fs /usr/local/opt/gcc@${{ matrix.gcc }}/lib/gcc/${{ matrix.gcc }}/libgfortran.5.dylib /usr/local/opt/gcc@10/lib/gcc/10/libgfortran.5.dylib + ln -fs /usr/local/lib/gcc/${{ matrix.gcc }}/libgcc_s.1.dylib /usr/local/lib/gcc/10/libgcc_s.1.dylib - name: Install GFortran (Linux) if: ${{ contains(matrix.os, 'ubuntu') }} diff --git a/src/tutorial/dependencies/src/demo.f90 b/src/tutorial/dependencies/src/demo.f90 index 71c4f9c40..2073c3da7 100644 --- a/src/tutorial/dependencies/src/demo.f90 +++ b/src/tutorial/dependencies/src/demo.f90 @@ -1,5 +1,5 @@ module demo - use stdlib_io, only : getline + use stdlib_io, only : get_line use stdlib_strings, only : replace_all implicit none private @@ -23,7 +23,7 @@ subroutine substitute(input, output, pattern, replacement) integer :: stat do - call getline(input, line, stat) + call get_line(input, line, stat) if (stat /= 0) exit write(output, '(a)') replace_all(line, pattern, replacement) end do