Allow the specification of alt-text on images when using CLI. #608
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: Rust CI | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_INCREMENTAL: 0 | |
CARGO_NET_RETRY: 10 | |
RUSTUP_MAX_RETRIES: 10 | |
RUST_BACKTRACE: short | |
RUSTFLAGS: "-D warnings" | |
jobs: | |
rust: | |
name: Rust | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
rust: | |
- 1.75.0 | |
- stable | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
components: rustfmt, clippy | |
- name: Bump opt-level | |
run: sed -i '/\[profile.dev]/a opt-level=1' Cargo.toml | |
- name: Compile (rust-analyzer) | |
run: cargo build --verbose | |
- name: Lint (clippy) | |
uses: giraffate/clippy-action@v1 | |
with: | |
reporter: "github-pr-check" | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Format (rustfmt) | |
run: cargo fmt-no-gen --check |