From b5378839ef992d8c908bbe22444ecf9431c06651 Mon Sep 17 00:00:00 2001 From: Dan Bonachea Date: Thu, 23 Apr 2026 12:49:57 -0700 Subject: [PATCH 1/3] CI: Add LFortran v0.63 --- .github/workflows/build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c7d1c47..9313796 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -108,7 +108,17 @@ jobs: container: phhargrove/lfortran:0.62.0-1 extra_flags: --separate-compilation --realloc-lhs-arrays + - os: ubuntu-24.04 + compiler: lfortran + version: 0.63.0 + container: phhargrove/lfortran:0.63.0-1 + # https://github.com/lfortran/lfortran/pkgs/container/lfortran + - os: ubuntu-22.04 + compiler: lfortran + version: 0.63.0 + container: ghcr.io/lfortran/lfortran:v0.63.0 + - os: ubuntu-22.04 compiler: lfortran version: latest From 0211ebc1b73745e5249024d0f5e29ce881063291 Mon Sep 17 00:00:00 2001 From: Dan Bonachea Date: Thu, 23 Apr 2026 18:12:44 -0700 Subject: [PATCH 2/3] CI: Factor the LFortran options --- .github/workflows/build.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9313796..1907acc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -101,13 +101,10 @@ jobs: compiler: lfortran version: 0.61.0 container: phhargrove/lfortran:0.61.0-1 - extra_flags: --separate-compilation --realloc-lhs-arrays - os: ubuntu-24.04 compiler: lfortran version: 0.62.0 container: phhargrove/lfortran:0.62.0-1 - extra_flags: --separate-compilation --realloc-lhs-arrays - - os: ubuntu-24.04 compiler: lfortran version: 0.63.0 @@ -118,12 +115,10 @@ jobs: compiler: lfortran version: 0.63.0 container: ghcr.io/lfortran/lfortran:v0.63.0 - - os: ubuntu-22.04 compiler: lfortran version: latest container: ghcr.io/lfortran/lfortran:latest - extra_flags: --separate-compilation --realloc-lhs-arrays container: image: ${{ matrix.container }} @@ -213,7 +208,7 @@ jobs: fi ; \ elif test "$FC" = "lfortran" ; then \ echo "FPM_FC=lfortran" >> "$GITHUB_ENV" ; \ - echo "FFLAGS=--cpp $FFLAGS" >> "$GITHUB_ENV" ; \ + echo "FFLAGS=--cpp --separate-compilation --realloc-lhs-arrays $FFLAGS" >> "$GITHUB_ENV" ; \ echo "FPM_FLAGS=--profile debug --verbose" >> "$GITHUB_ENV" ; : fpm 0.13 workaround ; \ else \ echo "FPM_FC=gfortran-${COMPILER_VERSION}" >> "$GITHUB_ENV" ; \ From 2ba072a19d9bc65b1cbe06505d39a643a7826f5b Mon Sep 17 00:00:00 2001 From: Dan Bonachea Date: Thu, 23 Apr 2026 18:16:10 -0700 Subject: [PATCH 3/3] CI: Deploy concurrency and path filtering for Action activation Reduce unnecessary churn by skipping CI Action for documentation-only changes. Also, avoid duplicate Actions on pushes to PR branches (which trigger both the `push` and `pull_request` events). Finally, cancel earlier Actions still running when a non-main branch is updated, as these are usually unneeded, and the superceded Action can even cause spurious failures after a subsequent force push orphans the source commit. --- .github/workflows/build.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1907acc..5719f1c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,18 @@ name: Build -on: [push, pull_request] +on: + push: + paths-ignore: &paths_ignore + - 'doc/**' + - '**.txt' + - '**.md' + pull_request: + paths-ignore: *paths_ignore + +concurrency: + # De-duplicate concurrent workflow runs on the same branch/ref + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} defaults: run: