From b563407355dbe957cc62071a3cd64b2276001a79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Sat, 7 Feb 2026 11:40:36 -0700 Subject: [PATCH 1/2] Test FPM --- .github/workflows/CI.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index b316ecb..78101f1 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -299,6 +299,31 @@ jobs: ./build/fortran/example_lincoa_fortran_2_exe ./build/fortran/example_cobyla_fortran_2_exe + cd .. + + - name: Test FPM + shell: bash -e -l {0} + run: | + export FC=lfortran + git clone https://github.com/fortran-lang/fpm.git + cd fpm + git checkout main + micromamba install -c conda-forge fpm gfortran + git checkout d0f89957541bdcc354da8e11422f5efcf9fedd0e + fpm --compiler=$FC build --flag "--cpp --realloc-lhs-arrays --use-loop-variable-after-loop" + fpm --compiler=$FC test --flag "--cpp --realloc-lhs-arrays --use-loop-variable-after-loop" + + git clean -dfx + rm -rf build + fpm --compiler=$FC test --flag "--cpp --realloc-lhs-arrays --use-loop-variable-after-loop --separate-compilation" + + git clean -dfx + rm -rf build + fpm --compiler=$FC test --flag "--cpp --realloc-lhs-arrays --use-loop-variable-after-loop --fast" + + cd .. + + test_scipy: name: Check SciPy Build and Test Run ${{ matrix.os }} runs-on: ${{ matrix.os }} From 20ced43b1ebb1eab8c502bbbc68bee5269c2a549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Sat, 7 Feb 2026 11:46:23 -0700 Subject: [PATCH 2/2] Swap the FC variable --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 78101f1..94732cc 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -304,11 +304,11 @@ jobs: - name: Test FPM shell: bash -e -l {0} run: | - export FC=lfortran git clone https://github.com/fortran-lang/fpm.git cd fpm git checkout main micromamba install -c conda-forge fpm gfortran + export FC=lfortran git checkout d0f89957541bdcc354da8e11422f5efcf9fedd0e fpm --compiler=$FC build --flag "--cpp --realloc-lhs-arrays --use-loop-variable-after-loop" fpm --compiler=$FC test --flag "--cpp --realloc-lhs-arrays --use-loop-variable-after-loop"