Add new 'mock' feature for 'mock-mount-s3' binary #1354
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Crate checks | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
merge_group: | |
types: [ "checks_requested" ] | |
jobs: | |
verify-crate: | |
name: Verify crate | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
crate: | |
- mountpoint-s3-crt-sys | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Set up stable Rust | |
uses: dtolnay/rust-toolchain@stable | |
- name: Package ${{ matrix.crate }} crate | |
# `--no-verify` avoids building using crates.io dependencies, which for local packages may not be updated yet | |
run: cargo package -p ${{ matrix.crate }} --no-verify | |
- name: Verify compressed crate size is smaller than crates.io limit | |
run: | | |
ls -alh target/package/*.crate | |
test `cat target/package/*.crate | wc -c` -le 10485760 |