From 69371309aecc20929eb3de68d6e8880557545002 Mon Sep 17 00:00:00 2001 From: Harald Klimach Date: Mon, 19 May 2025 23:25:07 +0200 Subject: [PATCH 1/4] Use the apes-suite/build-action to compile seeder --- .github/workflows/compile.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 8cbe637c..1d9c0cb3 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -15,19 +15,7 @@ jobs: with: submodules: recursive - - name: Install gfortran - run: | - sudo apt install -y gfortran - - - name: Install Open MPI - run: | - sudo apt install -y openmpi-bin openmpi-common libopenmpi-dev - - - name: Install Python - uses: actions/setup-python@v5 - with: - python-version: '3.13' - - name: Build Seeder - run: | - FC=mpif90 bin/waf --mpicmd 'mpiexec --oversubscribe' distclean configure build debug + uses: apes-suite/build-action@v1 + with: + waf-args: "configure build debug" From add61a2a1ce05866bb25ec20ad731517eb635584 Mon Sep 17 00:00:00 2001 From: Harald Klimach Date: Wed, 21 May 2025 00:37:04 +0200 Subject: [PATCH 2/4] Fix build-action version to 1.1.1 --- .github/workflows/compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 1d9c0cb3..a9a82ef3 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -1,4 +1,4 @@ -name: CheckCompilation +name: Compilation and Unit Tests on: pull_request: @@ -16,6 +16,6 @@ jobs: submodules: recursive - name: Build Seeder - uses: apes-suite/build-action@v1 + uses: apes-suite/build-action@v1.1.1 with: waf-args: "configure build debug" From 01caa873f85f73f815c83b7d3ace77bc6c1e37a7 Mon Sep 17 00:00:00 2001 From: Harald Klimach Date: Wed, 21 May 2025 14:18:22 +0200 Subject: [PATCH 3/4] Report on unit test results --- .github/workflows/compile.yml | 12 +++++++++++- bin | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index a9a82ef3..740709d6 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -1,4 +1,4 @@ -name: Compilation and Unit Tests +name: Compilation and UTests on: pull_request: @@ -8,6 +8,9 @@ on: jobs: compilation: + permissions: + checks: write + pull-requests: write runs-on: ubuntu-latest steps: - name: Checkout Code @@ -19,3 +22,10 @@ jobs: uses: apes-suite/build-action@v1.1.1 with: waf-args: "configure build debug" + + - name: Publish Test Results + uses: EnricoMi/publish-unit-test-result-action@v2.19.0 + with: + files: | + build/**/waf-utest.xml + check_name: "Waf Unit Tests" diff --git a/bin b/bin index c0701eea..eab11576 160000 --- a/bin +++ b/bin @@ -1 +1 @@ -Subproject commit c0701eeab3a500dfb60977b6f6355d70e0796850 +Subproject commit eab11576386202c650c7a1e231362eafee5905f1 From 05b59dac5d6511c84271e32df56a9ed2055fb698 Mon Sep 17 00:00:00 2001 From: Harald Klimach Date: Wed, 21 May 2025 14:36:58 +0200 Subject: [PATCH 4/4] build-action for documentation --- .github/workflows/ford.yml | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/.github/workflows/ford.yml b/.github/workflows/ford.yml index f46cc90c..d98d85b0 100644 --- a/.github/workflows/ford.yml +++ b/.github/workflows/ford.yml @@ -1,6 +1,7 @@ name: Fordoc on: + workflow_dispatch: push: branches: - 'main' @@ -21,34 +22,14 @@ jobs: with: submodules: recursive - - name: Install gfortran - run: | - sudo apt install -y gfortran - - - name: Install Open MPI - run: | - sudo apt install -y openmpi-bin openmpi-common libopenmpi-dev - - - name: Install Python - uses: actions/setup-python@v5 + - name: Build Seeder Documentation + uses: apes-suite/build-action@v1.1.1 with: - python-version: '3.13' - - - name: Install Graphviz - uses: ts-graphviz/setup-graphviz@v2 - - - name: Install FORD - run: | - python -m pip install --upgrade pip - pip install ford - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - - name: Build FORD Documentation - run: | - FC=mpif90 bin/waf --fordonline distclean configure docu + waf-args: "--fordonline configure docu" + obtain: "build/ford/sdr/docu" - name: Deploy Documentation uses: JamesIves/github-pages-deploy-action@v4 with: branch: gh-pages - folder: build/ford/sdr/docu + folder: docu