Skip to content

Commit

Permalink
Merge pull request #690 from primitivefinance/cargo_lock
Browse files Browse the repository at this point in the history
generate lock file to match toml in ci for consistent builds
  • Loading branch information
Autoparallel authored Nov 9, 2023
2 parents 811d55b + 3afb9ef commit 2493a9f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ jobs:
check_hidden: true
check_filenames: true
skip: .git,Cargo.lock,target
ignore_words_list: crate,Crate,functio
ignore_words_list: crate,Crate,functio
24 changes: 24 additions & 0 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,27 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

check-lockfile:
name: Check Cargo.lock
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Generate lockfile
run: cargo generate-lockfile

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update Cargo.lock
commit_options: '--no-verify --signoff'
file_pattern: Cargo.lock
branch: ${{ github.head_ref }}

0 comments on commit 2493a9f

Please sign in to comment.