Skip to content

Commit

Permalink
ci: Add autovendor flow
Browse files Browse the repository at this point in the history
This aids reproducibility to have an auto-generated vendor
snapshot that we save reliably.
  • Loading branch information
cgwalters committed Aug 29, 2023
1 parent 07afc16 commit f297cda
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/autovendor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Automatically generate a vendor.tar.zstd on pushes to git main.
name: Auto-vendor artifact

permissions:
actions: read

on:
push:
branches: [main]

jobs:
vendor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Install vendor tool
run: cargo install cargo-vendor-filterer
- name: Run
run: mkdir -p target && cd cli && cargo vendor-filterer --format=tar.zstd --prefix=vendor/ ../target/vendor.tar.zst
- uses: actions/upload-artifact@v3
with:
name: vendor.tar.zst
path: target/vendor.tar.zst

0 comments on commit f297cda

Please sign in to comment.