Skip to content

Commit 89df461

Browse files
authored
Commit Cargo.lock (#595)
This should improve CI times a bit since it allows cargo to skip update of the crates.io index.
1 parent 074b15b commit 89df461

File tree

3 files changed

+456
-4
lines changed

3 files changed

+456
-4
lines changed

.github/workflows/lock_upd.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Update Cargo.lock
2+
3+
on:
4+
schedule:
5+
# Run every Sunday at 00:00 UTC
6+
- cron: '0 0 * * 0'
7+
8+
permissions:
9+
contents: read
10+
pull-requests: write
11+
12+
jobs:
13+
update-cargo-lock:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: dtolnay/rust-toolchain@master
18+
with:
19+
toolchain: stable
20+
- name: Update dependencies
21+
run: cargo update
22+
- name: Create Pull Request
23+
uses: peter-evans/create-pull-request@v7
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
with:
27+
title: "Update Cargo.lock"
28+
commit-message: "Update Cargo.lock"
29+
base: master
30+
branch: update-cargo-lock
31+
path: Cargo.lock

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/target
22
**/*.rs.bk
3-
Cargo.lock
4-
*.ts
5-
*.js
6-
*.wasm
3+
nopanic_check/Cargo.lock
4+
nopanic_check/target/

0 commit comments

Comments
 (0)