From cc776cb73419ef511addfb8877567b8285418028 Mon Sep 17 00:00:00 2001 From: zoziha Date: Thu, 13 Oct 2022 10:58:59 +0800 Subject: [PATCH 1/2] Add fpm support --- fpm.toml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 fpm.toml diff --git a/fpm.toml b/fpm.toml new file mode 100644 index 0000000..e394b39 --- /dev/null +++ b/fpm.toml @@ -0,0 +1,27 @@ +name = "StringiFor" +version = "1.1.4" +author = "Stefano Zaghi" +copyright = "Copyright © 2016, Stefano Zaghi" +license = "Multiple licenses" +description = "Strings Fortran Manipulator with steroids" +maintainer = "Stefano Zaghi" +homepage = "https://github.com/szaghi/StringiFor" + +[library] +source-dir = "src/lib" + +[install] +library = true + +[dependencies] +[dependencies.BeFoR64] +git = "https://github.com/szaghi/BeFoR64" +rev = "09b95c08a2ee8995d19cf8551c22b783193f6246" + +[dependencies.FACE] +git = "https://github.com/szaghi/FACE" +rev = "3bdabbc7f24843ddde8b3afd1f17c325e8e215c9" + +[dependencies.PENF] +git = "https://github.com/szaghi/PENF" +rev = "65061235982495b158412b70c05b228af4320d94" From 3a46e578c33723fe8ff44ad766c1806886a843fd Mon Sep 17 00:00:00 2001 From: zoziha Date: Thu, 13 Oct 2022 11:16:24 +0800 Subject: [PATCH 2/2] Add fpm CI --- .github/workflows/fpm.yml | 53 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/fpm.yml diff --git a/.github/workflows/fpm.yml b/.github/workflows/fpm.yml new file mode 100644 index 0000000..e9544db --- /dev/null +++ b/.github/workflows/fpm.yml @@ -0,0 +1,53 @@ +name: fpm + +on: [push, pull_request] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + gcc_v: [10] # Version of GFortran we want to use. + include: + - os: ubuntu-latest + os-arch: linux-x86_64 + + - os: macos-latest + os-arch: macos-x86_64 + + - os: windows-latest + os-arch: windows-x86_64 + # Windows GFortran Version: 8.1 + + env: + FC: gfortran + GCC_V: ${{ matrix.gcc_v }} + + steps: + - name: Checkout code + uses: actions/checkout@v1 + + - name: Install GFortran macOS + if: contains(matrix.os, 'macos') + run: | + ln -s /usr/local/bin/gfortran-${GCC_V} /usr/local/bin/gfortran + which gfortran-${GCC_V} + which gfortran + - name: Install GFortran Linux + if: contains(matrix.os, 'ubuntu') + run: | + sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \ + --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \ + --slave /usr/bin/gcov gcov /usr/bin/gcov-${GCC_V} + + - name: Install fpm + uses: fortran-lang/setup-fpm@v3 + with: + fpm-version: 'v0.6.0' + + - name: Build StringiFor + run: | + gfortran --version + fpm build