Skip to content

Bump clap from 4.5.20 to 4.5.21 #214

Bump clap from 4.5.20 to 4.5.21

Bump clap from 4.5.20 to 4.5.21 #214

Workflow file for this run

# This is a condensed version of [release-yml].
#
# [release-yml]: https://github.com/paskausks/rust-bin-github-workflows/blob/894a4f2debade42f8d7b5b95f493eaa33fdeb81b/.github/workflows/release.yml
on: push
name: Build and test
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
rust: [ stable ]
name: ${{ matrix.os }}, Rust ${{ matrix.rust }}
steps:
- uses: actions/checkout@v4
- name: Install Rust (rustup)
run: |
rustup update ${{ matrix.rust }} --no-self-update
rustup default ${{ matrix.rust }}
rustup component add rustfmt
rustc --version
shell: bash
- name: Build (release)
run: cargo build --verbose --release
- uses: actions/upload-artifact@v4
name: Upload binary
if: matrix.os == 'windows-latest'
with:
name: ${{ runner.os }}
path: target/release/git-tree.exe
- name: Check formatting
run: cargo fmt -- --check
- name: Test
run: cargo test