From 246ca1899411b6dab723cd041031fc749cb07c00 Mon Sep 17 00:00:00 2001 From: laruh Date: Sat, 28 Dec 2024 18:26:55 +0700 Subject: [PATCH] validate-cargo-lock.yml --- .github/workflows/validate-cargo-lock.yml | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/validate-cargo-lock.yml diff --git a/.github/workflows/validate-cargo-lock.yml b/.github/workflows/validate-cargo-lock.yml new file mode 100644 index 0000000000..7a08785dd8 --- /dev/null +++ b/.github/workflows/validate-cargo-lock.yml @@ -0,0 +1,25 @@ +name: Validate Cargo.lock +on: [push] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + validate-cargo-lock: + name: Validate Cargo.lock Consistency + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install Rust toolchain + run: | + rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal + rustup default nightly-2023-06-01 + + - name: Validate Cargo.lock + run: | + echo "Checking if Cargo.lock is up-to-date..." + cargo update -w --locked + shell: bash