Skip to content

Don't use clap in example to parse command line #3

Don't use clap in example to parse command line

Don't use clap in example to parse command line #3

Workflow file for this run

name: Cargo Build & Test
on:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Rust project - latest
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check format
run: cargo fmt --check
- name: Test code
run: cargo test --verbose
- name: Build and run exemples
run: |
cargo build --examples
cargo run --example explore_fs . "src/display.rs"
check_publication:
name: Check we can publish
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Dry Run Pubish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
cargo publish --dry-run