Dependency: Upgrade ocipkg
#48
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: Pull Request | |
on: | |
push: | |
branches: | |
main | |
pull_request: | |
branches: | |
main | |
workflow_dispatch: | |
jobs: | |
build-test-lint-and-fmt: | |
name: "Build and Test" | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- os: ubuntu-latest | |
rust_target: x86_64-unknown-linux-gnu | |
- os: macos-latest | |
rust_target: aarch64-apple-darwin | |
- os: windows-latest | |
rust_target: x86_64-pc-windows-msvc | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Rust | |
id: toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
target: ${{ matrix.config.rust_target }} | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
key: "${{ matrix.config.rust_target }}-${{ steps.toolchain.outputs.cachekey }}" | |
- name: Build | |
run: cargo build --tests | |
- name: Test | |
run: cargo test | |
- name: Clippy | |
# Use bash to support backslash newline escapes. | |
shell: bash | |
run: | | |
cargo clippy --no-deps -- \ | |
-D warnings \ | |
-W clippy::expect_used \ | |
-W clippy::uninlined_format_args \ | |
-W clippy::unwrap_used \ | |
-A clippy::result_large_err | |
- name: Format Check | |
run: cargo fmt -- --check --verbose |