From 43911c33794df7deae278b50bd9ac7fe8bc522ef Mon Sep 17 00:00:00 2001 From: zjwegert <60646897+zjwegert@users.noreply.github.com> Date: Wed, 15 May 2024 10:26:00 +1000 Subject: [PATCH] Update ci --- .github/workflows/ci.yml | 39 ++++++++++++++++++------------------ .github/workflows/ci_mpi.yml | 5 +++-- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a33a153..f6158985 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,7 @@ jobs: with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} + - run: julia --project=. -e 'using Pkg; Pkg.add(name="GridapSolvers", rev="develop");' - uses: actions/cache@v1 env: cache-name: cache-artifacts @@ -32,24 +33,24 @@ jobs: - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v1 + - uses: codecov/codecov-action@v4 with: - file: ./lcov.info + file: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} -# docs: -# name: Documentation -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v2 -# - uses: julia-actions/setup-julia@v1 -# with: -# version: '1.9' -# - run: | -# julia --project=docs -e ' -# using Pkg -# Pkg.develop(PackageSpec(path=pwd())) -# Pkg.instantiate()' -# - run: julia --project=docs docs/make.jl -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} + docs: + name: Documentation + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: '1.9' + - run: | + julia --project=docs -e ' + using Pkg + Pkg.develop(PackageSpec(path=pwd())) + Pkg.instantiate()' + - run: julia --project=docs docs/make.jl + env: + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} diff --git a/.github/workflows/ci_mpi.yml b/.github/workflows/ci_mpi.yml index 778b40b5..455825aa 100644 --- a/.github/workflows/ci_mpi.yml +++ b/.github/workflows/ci_mpi.yml @@ -34,8 +34,8 @@ jobs: arch: ${{ matrix.arch }} - name: Install p4est/petsc dependencies run: | - sudo apt-get update - sudo apt-get install -y wget gfortran g++ openmpi-bin libopenmpi-dev + sudo apt-get update + sudo apt-get install -y wget gfortran g++ openmpi-bin libopenmpi-dev - name: Install petsc run: | CURR_DIR=$(pwd) @@ -61,6 +61,7 @@ jobs: - uses: julia-actions/julia-buildpkg@latest - run: echo $PWD - run: julia --project=. -e 'using Pkg; Pkg.instantiate();' + - run: julia --project=. -e 'using Pkg; Pkg.add(name="GridapSolvers", rev="develop");' - run: julia --project=. -e 'using Pkg; Pkg.add("MPIPreferences")' - run: julia --project=. -e 'using MPIPreferences; MPIPreferences.use_system_binary()' - run: julia --project=. -e 'using Pkg; Pkg.build(); Pkg.precompile()'