From 56aac6126359f1a27ed3ac276e3e0198b7a361a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Sat, 15 Feb 2025 15:50:10 +0000 Subject: [PATCH 1/2] [CI] Update some GitHub Actions workflows --- .github/workflows/ci.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f8aa49a9..85f31aaf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -98,7 +98,9 @@ jobs: # cache-artifacts: "true" # cache-packages: "false" # cache-registries: "false" - - uses: julia-actions/julia-buildpkg@latest + - uses: julia-actions/julia-buildpkg@v1 + with: + ignore-no-cache: true - name: System info run: | args=(--check-bounds=yes --color=yes --depwarn=yes --inline=yes --project=@.) @@ -107,7 +109,7 @@ jobs: args+=(--code-coverage="@${PWD}") fi julia "${args[@]}" -e "using BinaryBuilderBase; BinaryBuilderBase.versioninfo()" - - name: Run tests + - name: Set up SSH agent run: | eval `ssh-agent` chmod 0600 test/id_ecdsa_deploy_helloworld_c_jll_read_only @@ -115,8 +117,16 @@ jobs: touch ~/.ssh/known_hosts ssh-keyscan github.com >> ~/.ssh/known_hosts ssh-add test/id_ecdsa_deploy_helloworld_c_jll_read_only - julia --check-bounds=yes --color=yes --depwarn=yes --inline=yes --project=@. -e 'using Pkg; Pkg.instantiate(); Pkg.test(coverage=true)' - - uses: julia-actions/julia-uploadcodecov@v0.1 + - uses: julia-actions/julia-runtest@v1 + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v5 continue-on-error: true - - uses: julia-actions/julia-uploadcoveralls@v1.0 + with: + files: lcov.info + - uses: coverallsapp/github-action@v2 continue-on-error: true + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: lcov.info + flag-name: run-${{ join(matrix.*, '-') }} + parallel: true From af475d351641e958547264d5c7e7a00d999451b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Sat, 15 Feb 2025 15:57:18 +0000 Subject: [PATCH 2/2] [CI] Tests must be run in the same step as the one setting up the SSH agent --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 85f31aaf..ef1716a3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -109,7 +109,7 @@ jobs: args+=(--code-coverage="@${PWD}") fi julia "${args[@]}" -e "using BinaryBuilderBase; BinaryBuilderBase.versioninfo()" - - name: Set up SSH agent + - name: Run tests run: | eval `ssh-agent` chmod 0600 test/id_ecdsa_deploy_helloworld_c_jll_read_only @@ -117,7 +117,7 @@ jobs: touch ~/.ssh/known_hosts ssh-keyscan github.com >> ~/.ssh/known_hosts ssh-add test/id_ecdsa_deploy_helloworld_c_jll_read_only - - uses: julia-actions/julia-runtest@v1 + julia --check-bounds=yes --color=yes --depwarn=yes --inline=yes --project=@. -e 'using Pkg; Pkg.instantiate(); Pkg.test(coverage=true)' - uses: julia-actions/julia-processcoverage@v1 - uses: codecov/codecov-action@v5 continue-on-error: true