From 013f434ff253a597b30a0bc3a437cda9c2b3f2a6 Mon Sep 17 00:00:00 2001 From: Michael Tautschnig Date: Mon, 27 Nov 2023 13:00:55 +0000 Subject: [PATCH 1/2] Automate cargo update Automatically create pull requests from the result of running `cargo update` every Monday morning. --- .github/workflows/cargo-update.yml | 47 ++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/cargo-update.yml diff --git a/.github/workflows/cargo-update.yml b/.github/workflows/cargo-update.yml new file mode 100644 index 000000000000..ef2d8847d527 --- /dev/null +++ b/.github/workflows/cargo-update.yml @@ -0,0 +1,47 @@ +# Copyright Kani Contributors +# SPDX-License-Identifier: Apache-2.0 OR MIT + +name: Attempt cargo update + +on: + schedule: + - cron: "30 3 * * Mon" # Run this every Monday at 03:30 UTC + workflow_dispatch: # Allow manual dispatching for a custom branch / tag. + +permissions: + checks: write + contents: write + pull-requests: write + +jobs: + create-cargo-update-pr: + runs-on: ubuntu-22.04 + steps: + - name: Checkout Kani + uses: actions/checkout@v3 + + - name: Setup Kani Dependencies + uses: ./.github/actions/setup + with: + os: ubuntu-22.04 + + - name: Run cargo update + env: + GH_TOKEN: ${{ github.token }} + run: | + today=$(date +%Y-%m-%d) + echo "today=$today" >> $GITHUB_ENV + if ! git ls-remote --exit-code origin cargo-update-$today ; then + cargo update + cargo build-dev + git diff + fi + - name: Create Pull Request + uses: peter-evans/create-pull-request@v5 + with: + commit-message: Upgrade cargo dependencies to ${{ env.today }} + branch: cargo-update-${{ env.today }} + delete-branch: true + title: 'Automatic cargo update to ${{ env.today }}' + body: > + Dependency upgrade resulting from `cargo update`. From 7ef6bd65eb9b166bcbb5c5a06484835b02da13bc Mon Sep 17 00:00:00 2001 From: tautschnig Date: Mon, 27 Nov 2023 13:30:02 +0000 Subject: [PATCH 2/2] Upgrade cargo dependencies to 2023-11-27 --- Cargo.lock | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 70173c6c8b67..01b2d9eddd9b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -138,9 +138,9 @@ dependencies = [ [[package]] name = "cargo-platform" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12024c4645c97566567129c204f65d5815a8c9aecf30fcbe682b2fe034996d36" +checksum = "e34637b3140142bdf929fb439e8aa4ebad7651ebf7b1080b3930aa16ac1459ff" dependencies = [ "serde", ] @@ -394,9 +394,9 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.14.2" +version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f93e7192158dbcda357bdec5fb5788eebf8bbac027f3f33e719d29135ae84156" +checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" [[package]] name = "heck" @@ -420,7 +420,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f" dependencies = [ "equivalent", - "hashbrown 0.14.2", + "hashbrown 0.14.3", ] [[package]] @@ -773,9 +773,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.69" +version = "1.0.70" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da" +checksum = "39278fbbf5fb4f646ce651690877f89d1c5811a3d4acb27700c1cb3cdb78fd3b" dependencies = [ "unicode-ident", ] @@ -918,9 +918,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.24" +version = "0.38.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ad981d6c340a49cdc40a1028d9c6084ec7e9fa33fcb839cab656a267071e234" +checksum = "dc99bc2d4f1fed22595588a013687477aedf3cdcfb26558c559edb67b4d9b22e" dependencies = [ "bitflags 2.4.1", "errno", @@ -967,18 +967,18 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.192" +version = "1.0.193" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bca2a08484b285dcb282d0f67b26cadc0df8b19f8c12502c13d966bf9482f001" +checksum = "25dd9975e68d0cb5aa1120c288333fc98731bd1dd12f561e468ea4728c042b89" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.192" +version = "1.0.193" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6c7207fbec9faa48073f3e3074cbe553af6ea512d7c21ba46e434e70ea9fbc1" +checksum = "43576ca501357b9b071ac53cdc7da8ef0cbd9493d8df094cd821777ea6e894d3" dependencies = [ "proc-macro2", "quote",