From 93368651584ffc1475f6b504acce2e4e41223dea Mon Sep 17 00:00:00 2001 From: Thomas Niederberger <781000+Niederb@users.noreply.github.com> Date: Mon, 10 Jun 2024 07:40:18 +0200 Subject: [PATCH] Upload Cargo.lock during build (#774) * Test with uploading Cargo.lock * Update with Cargo.lock to use * Re-activate check for scheduled build --- .github/workflows/ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 374e16a02..0d08ff804 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,6 +85,14 @@ jobs: if: ${{ github.event_name == 'schedule' }} run: cargo update + - name: Upload Cargo.lock + uses: actions/upload-artifact@v4 + # Upload the Cargo.lock from the build with --locked as this one should not update the Cargo.lock anymore + if: contains(matrix.check, '--locked') + with: + name: cargo-lock + path: Cargo.lock + - uses: Swatinem/rust-cache@v2 with: key: ${{ matrix.check }} @@ -235,6 +243,5 @@ jobs: uses: actions/upload-artifact/merge@v4 with: separate-directories: true - name: examples - pattern: examples-* + name: artifacts delete-merged: true