diff --git a/.github/workflows/ClimaCoreMakie.yml b/.github/workflows/ClimaCoreMakie.yml index a4319413c4..5e3cba58c4 100644 --- a/.github/workflows/ClimaCoreMakie.yml +++ b/.github/workflows/ClimaCoreMakie.yml @@ -2,6 +2,15 @@ name: ClimaCoreMakie CI on: pull_request: +# Needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: lib-climacore-makie: runs-on: ubuntu-20.04 @@ -9,19 +18,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@latest + - uses: julia-actions/setup-julia@v2 with: version: '1.10' - - uses: actions/cache@v3 - env: - cache-name: cache-artifacts - with: - path: ~/.julia/artifacts - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} - restore-keys: | - ${{ runner.os }}-test-${{ env.cache-name }}- - ${{ runner.os }}-test- - ${{ runner.os }}- + - uses: julia-actions/cache@v2 - run: sudo apt-get update && sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev - name: Install Julia dependencies run: > @@ -34,7 +34,7 @@ jobs: DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --project=monorepo -e 'using Pkg; Pkg.test("ClimaCoreMakie")' && echo "TESTS_SUCCESSFUL=true" >> $GITHUB_ENV - name: Upload test Artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: climacore-makie-output path: | diff --git a/.github/workflows/ClimaCorePlots.yml b/.github/workflows/ClimaCorePlots.yml index 96f87d6d00..9273ecc671 100644 --- a/.github/workflows/ClimaCorePlots.yml +++ b/.github/workflows/ClimaCorePlots.yml @@ -2,6 +2,15 @@ name: ClimaCorePlots CI on: pull_request: +# Needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: lib-climacore-plots: runs-on: ubuntu-20.04 @@ -9,19 +18,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@latest + - uses: julia-actions/setup-julia@v2 with: version: '1.10' - - uses: actions/cache@v3 - env: - cache-name: cache-artifacts - with: - path: ~/.julia/artifacts - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} - restore-keys: | - ${{ runner.os }}-test-${{ env.cache-name }}- - ${{ runner.os }}-test- - ${{ runner.os }}- + - uses: julia-actions/cache@v2 - name: Install Julia dependencies run: > julia --project=monorepo -e 'using Pkg; Pkg.develop(path="$(pwd())"); Pkg.develop(path="$(pwd())/lib/ClimaCorePlots")' @@ -34,7 +34,7 @@ jobs: julia --project=monorepo -e 'using Pkg; Pkg.test("ClimaCorePlots")' && echo "TESTS_SUCCESSFUL=true" >> $GITHUB_ENV - name: Upload test Artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: climacore-plots-output path: | diff --git a/.github/workflows/ClimaCoreSpectra.yml b/.github/workflows/ClimaCoreSpectra.yml index 9eb9e1626c..3ded35c179 100644 --- a/.github/workflows/ClimaCoreSpectra.yml +++ b/.github/workflows/ClimaCoreSpectra.yml @@ -2,6 +2,15 @@ name: ClimaCoreSpectra CI on: pull_request: +# Needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: lib-climacore-spectra: runs-on: ubuntu-20.04 @@ -9,19 +18,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@latest + - uses: julia-actions/setup-julia@v2 with: version: '1.10' - - uses: actions/cache@v3 - env: - cache-name: cache-artifacts - with: - path: ~/.julia/artifacts - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} - restore-keys: | - ${{ runner.os }}-test-${{ env.cache-name }}- - ${{ runner.os }}-test- - ${{ runner.os }}- + - uses: julia-actions/cache@v2 - name: Install Julia dependencies run: > julia --project=monorepo -e 'using Pkg; Pkg.develop(path="$(pwd())"); Pkg.develop(path="$(pwd())/lib/ClimaCoreSpectra")' @@ -34,7 +34,7 @@ jobs: julia --project=monorepo -e 'using Pkg; Pkg.test("ClimaCoreSpectra")' && echo "TESTS_SUCCESSFUL=true" >> $GITHUB_ENV - name: Upload test Artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: climacore-spectra-output path: | diff --git a/.github/workflows/ClimaCoreTempestRemap.yml b/.github/workflows/ClimaCoreTempestRemap.yml index c3b289e2d8..2e29233a06 100644 --- a/.github/workflows/ClimaCoreTempestRemap.yml +++ b/.github/workflows/ClimaCoreTempestRemap.yml @@ -2,6 +2,16 @@ name: ClimaCoreTempestRemap CI on: pull_request: +# Needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + + jobs: lib-climacore-tempestremap: runs-on: ubuntu-20.04 @@ -9,19 +19,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@latest + - uses: julia-actions/setup-julia@v2 with: version: '1.10' - - uses: actions/cache@v3 - env: - cache-name: cache-artifacts - with: - path: ~/.julia/artifacts - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} - restore-keys: | - ${{ runner.os }}-test-${{ env.cache-name }}- - ${{ runner.os }}-test- - ${{ runner.os }}- + - uses: julia-actions/cache@v2 - name: Install Julia dependencies run: > julia --project=monorepo -e 'using Pkg; Pkg.develop(path="$(pwd())"); Pkg.develop(path="$(pwd())/lib/ClimaCoreTempestRemap")' @@ -33,7 +34,7 @@ jobs: julia --project=monorepo -e 'using Pkg; Pkg.test("ClimaCoreTempestRemap")' && echo "TESTS_SUCCESSFUL=true" >> $GITHUB_ENV - name: Upload test Artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: climacore-tempestremap-output path: | diff --git a/.github/workflows/ClimaCoreVTK.yml b/.github/workflows/ClimaCoreVTK.yml index 8b36d0a60f..ba25bb1c96 100644 --- a/.github/workflows/ClimaCoreVTK.yml +++ b/.github/workflows/ClimaCoreVTK.yml @@ -2,6 +2,15 @@ name: ClimaCoreVTK CI on: pull_request: +# Needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: lib-climacore-vtk: runs-on: ubuntu-20.04 @@ -9,19 +18,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@latest + - uses: julia-actions/setup-julia@v2 with: version: '1.10' - - uses: actions/cache@v3 - env: - cache-name: cache-artifacts - with: - path: ~/.julia/artifacts - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} - restore-keys: | - ${{ runner.os }}-test-${{ env.cache-name }}- - ${{ runner.os }}-test- - ${{ runner.os }}- + - uses: julia-actions/cache@v2 - name: Install Paraview run: | sudo apt-get update && sudo apt-get -y install paraview python3-paraview @@ -42,7 +42,7 @@ jobs: done continue-on-error: true - name: Upload test Artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: climacore-vtk-output path: | diff --git a/.github/workflows/Downstream.yml b/.github/workflows/Downstream.yml index f8d45f83bc..bcb8aec810 100644 --- a/.github/workflows/Downstream.yml +++ b/.github/workflows/Downstream.yml @@ -6,6 +6,11 @@ on: tags: '*' pull_request: +# Needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -25,7 +30,7 @@ jobs: - 'ClimaTimeSteppers.jl' steps: - uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@v1 + - uses: julia-actions/setup-julia@v2 with: version: '1.10' - uses: julia-actions/cache@v2 diff --git a/.github/workflows/UnitTests.yml b/.github/workflows/UnitTests.yml index fc8e89498c..caefa6bc51 100644 --- a/.github/workflows/UnitTests.yml +++ b/.github/workflows/UnitTests.yml @@ -36,10 +36,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@latest + - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.julia-version }} - - uses: julia-actions/cache@v1 + - uses: julia-actions/cache@v2 - uses: julia-actions/julia-buildpkg@latest - uses: julia-actions/julia-runtest@latest - uses: julia-actions/julia-processcoverage@latest diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index f054711f33..487bb78878 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@latest + - uses: julia-actions/setup-julia@v2 with: version: '1.10' - name: Install dependencies