Skip to content

Commit

Permalink
Commit Cargo.lock (#595)
Browse files Browse the repository at this point in the history
This should improve CI times a bit since it allows cargo to skip update
of the crates.io index.
  • Loading branch information
newpavlov authored Feb 12, 2025
1 parent 074b15b commit 89df461
Show file tree
Hide file tree
Showing 3 changed files with 456 additions and 4 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/lock_upd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Update Cargo.lock

on:
schedule:
# Run every Sunday at 00:00 UTC
- cron: '0 0 * * 0'

permissions:
contents: read
pull-requests: write

jobs:
update-cargo-lock:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Update dependencies
run: cargo update
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
title: "Update Cargo.lock"
commit-message: "Update Cargo.lock"
base: master
branch: update-cargo-lock
path: Cargo.lock
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/target
**/*.rs.bk
Cargo.lock
*.ts
*.js
*.wasm
nopanic_check/Cargo.lock
nopanic_check/target/
Loading

0 comments on commit 89df461

Please sign in to comment.