From 9479af821cbc3a9efc4cd3673b532689ddafbc92 Mon Sep 17 00:00:00 2001 From: Joshua Lampert Date: Tue, 12 Dec 2023 16:37:30 +0100 Subject: [PATCH 1/6] Create Downgrade.yml --- .github/workflows/Downgrade.yml | 64 +++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .github/workflows/Downgrade.yml diff --git a/.github/workflows/Downgrade.yml b/.github/workflows/Downgrade.yml new file mode 100644 index 0000000..d37f0a4 --- /dev/null +++ b/.github/workflows/Downgrade.yml @@ -0,0 +1,64 @@ +name: Downgrade + +on: + pull_request: + paths-ignore: + - 'AUTHORS.md' + - 'CITATION.bib' + - 'CONTRIBUTING.md' + - 'LICENSE.md' + - 'NEWS.md' + - 'README.md' + - '.zenodo.json' + - '.github/workflows/CompatHelper.yml' + - '.github/workflows/Documenter.yml' + - '.github/workflows/Format-check.yml' + - '.github/workflows/TagBot.yml' + - '.github/workflows/SpellCheck.yml' + - 'docs/**' + workflow_dispatch: + +# Cancel redundant CI tests automatically +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + downgrade_test: + if: "!contains(github.event.head_commit.message, 'skip ci')" + # We could also include the Julia version as in + # name: ${{ matrix.trixi_test }} - ${{ matrix.os }} - Julia ${{ matrix.version }} - ${{ matrix.arch }} - ${{ github.event_name }} + # to be more specific. However, that requires us updating the required CI tests whenever we update Julia. + name: Downgrade ${{ matrix.trixi_test }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + version: + - '1.9' + # - '~1.9.0-0' # including development versions + # - 'nightly' + os: + - ubuntu-latest + arch: + - x64 + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + - run: julia -e 'using InteractiveUtils; versioninfo(verbose=true)' + - uses: julia-actions/cache@v1 + - uses: cjdoris/julia-downgrade-compat-action@v1 + with: + skip: LinearAlgebra + - uses: julia-actions/julia-buildpkg@v1 + env: + PYTHON: "" + - name: Run tests without coverage + uses: julia-actions/julia-runtest@v1 + with: + coverage: false + env: + PYTHON: "" From 2a71747bdf89caf9ba57aa81a29a85e91b72d87c Mon Sep 17 00:00:00 2001 From: Joshua Lampert Date: Fri, 26 Jan 2024 10:29:49 +0100 Subject: [PATCH 2/6] use latest version of downgrade action --- .github/workflows/Downgrade.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Downgrade.yml b/.github/workflows/Downgrade.yml index d37f0a4..1e6b1d6 100644 --- a/.github/workflows/Downgrade.yml +++ b/.github/workflows/Downgrade.yml @@ -50,7 +50,7 @@ jobs: arch: ${{ matrix.arch }} - run: julia -e 'using InteractiveUtils; versioninfo(verbose=true)' - uses: julia-actions/cache@v1 - - uses: cjdoris/julia-downgrade-compat-action@v1 + - uses: cjdoris/julia-downgrade-compat-action@v1.0.7 with: skip: LinearAlgebra - uses: julia-actions/julia-buildpkg@v1 From 1c8cde04730a2c0d10c59aae796e438120ef6ce8 Mon Sep 17 00:00:00 2001 From: Joshua Lampert Date: Fri, 26 Jan 2024 10:34:39 +0100 Subject: [PATCH 3/6] skipt UUIDs --- .github/workflows/Downgrade.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Downgrade.yml b/.github/workflows/Downgrade.yml index 1e6b1d6..29d6f06 100644 --- a/.github/workflows/Downgrade.yml +++ b/.github/workflows/Downgrade.yml @@ -52,7 +52,7 @@ jobs: - uses: julia-actions/cache@v1 - uses: cjdoris/julia-downgrade-compat-action@v1.0.7 with: - skip: LinearAlgebra + skip: LinearAlgebra,UUIDs - uses: julia-actions/julia-buildpkg@v1 env: PYTHON: "" From 0bcafa90ccd545d1a2cc879b8c745801a2df994f Mon Sep 17 00:00:00 2001 From: Joshua Lampert Date: Fri, 26 Jan 2024 11:13:07 +0100 Subject: [PATCH 4/6] fix lower compat bounds --- .github/workflows/Downgrade.yml | 2 +- Project.toml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Downgrade.yml b/.github/workflows/Downgrade.yml index 29d6f06..516bc08 100644 --- a/.github/workflows/Downgrade.yml +++ b/.github/workflows/Downgrade.yml @@ -52,7 +52,7 @@ jobs: - uses: julia-actions/cache@v1 - uses: cjdoris/julia-downgrade-compat-action@v1.0.7 with: - skip: LinearAlgebra,UUIDs + skip: UUIDs - uses: julia-actions/julia-buildpkg@v1 env: PYTHON: "" diff --git a/Project.toml b/Project.toml index 75a2b84..e6c0e6e 100644 --- a/Project.toml +++ b/Project.toml @@ -15,9 +15,9 @@ UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4" [compat] CEnum = "0.4, 0.5" MPI = "0.20" -MPIPreferences = "0.1" +MPIPreferences = "0.1.3" P4est_jll = "=2.8.1" -Preferences = "1" -Reexport = "0.2, 1.0" +Preferences = "1.2" +Reexport = "1.0" UUIDs = "1.6" julia = "1.6" From 60f1a7c0390bbcef0b481305fd543d60507b4731 Mon Sep 17 00:00:00 2001 From: Joshua Lampert Date: Fri, 26 Jan 2024 11:33:54 +0100 Subject: [PATCH 5/6] set version of downgrade action back to v1 --- .github/workflows/Downgrade.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Downgrade.yml b/.github/workflows/Downgrade.yml index 516bc08..404b72e 100644 --- a/.github/workflows/Downgrade.yml +++ b/.github/workflows/Downgrade.yml @@ -29,7 +29,7 @@ jobs: # We could also include the Julia version as in # name: ${{ matrix.trixi_test }} - ${{ matrix.os }} - Julia ${{ matrix.version }} - ${{ matrix.arch }} - ${{ github.event_name }} # to be more specific. However, that requires us updating the required CI tests whenever we update Julia. - name: Downgrade ${{ matrix.trixi_test }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + name: Downgrade ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -50,7 +50,7 @@ jobs: arch: ${{ matrix.arch }} - run: julia -e 'using InteractiveUtils; versioninfo(verbose=true)' - uses: julia-actions/cache@v1 - - uses: cjdoris/julia-downgrade-compat-action@v1.0.7 + - uses: cjdoris/julia-downgrade-compat-action@v1 with: skip: UUIDs - uses: julia-actions/julia-buildpkg@v1 From eb28109f303d30fdf410b594033dc73bacf743de Mon Sep 17 00:00:00 2001 From: Joshua Lampert Date: Fri, 26 Jan 2024 11:54:40 +0100 Subject: [PATCH 6/6] set version of compat action back to v1.0.7 --- .github/workflows/Downgrade.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Downgrade.yml b/.github/workflows/Downgrade.yml index 404b72e..9fa61ad 100644 --- a/.github/workflows/Downgrade.yml +++ b/.github/workflows/Downgrade.yml @@ -50,7 +50,7 @@ jobs: arch: ${{ matrix.arch }} - run: julia -e 'using InteractiveUtils; versioninfo(verbose=true)' - uses: julia-actions/cache@v1 - - uses: cjdoris/julia-downgrade-compat-action@v1 + - uses: cjdoris/julia-downgrade-compat-action@v1.0.7 with: skip: UUIDs - uses: julia-actions/julia-buildpkg@v1