Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 12 additions & 42 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- main
paths:
- "**/*.rs"
- Cargo.toml
- "**/Cargo.toml"
- Cargo.lock

name: ci·rs
Expand All @@ -21,31 +21,19 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check
- uses: dtolnay/rust-toolchain@stable
- run: cargo check
env:
RUSTFLAGS: "-D warnings"

fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
components: rustfmt
- run: cargo fmt --all -- --check

clippy:
strategy:
Expand All @@ -54,15 +42,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features
- run: cargo clippy --all-features
env:
RUSTFLAGS: "-D warnings"

Expand All @@ -73,14 +56,8 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --all-features
env:
RUSTFLAGS: "-D warnings"

Expand All @@ -92,12 +69,5 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: run
args: --all-features -- git --version
- uses: dtolnay/rust-toolchain@stable
- run: cargo run --all-features -- git --version
12 changes: 2 additions & 10 deletions .github/workflows/release-packaging.yaml.todo
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: nightly
# override: true
# - uses: dtolnay/rust-toolchain@stable
# - name: Release Build
# run: cargo build --release
# - name: "Upload Artifact"
Expand All @@ -34,11 +30,7 @@
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: nightly
# override: true
# - uses: dtolnay/rust-toolchain@stable
# - uses: katyo/publish-crates@v2
# with:
# registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
27 changes: 10 additions & 17 deletions .github/workflows/test.yml.todo
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,20 @@
# env:
# PROJECT_NAME_UNDERSCORE: semverator
# CARGO_INCREMENTAL: 0
# RUSTFLAGS: -Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort -D warnings
# RUSTFLAGS: -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort -D warnings
# RUSTDOCFLAGS: -Cpanic=abort
# strategy:
# matrix:
# os: [ubuntu-latest, macos-latest]
# runs-on: ${{ matrix.os }}
# steps:
# - uses: actions/checkout@v4
# - uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: nightly
# override: true
# - uses: dtolnay/rust-toolchain@stable
id: toolchain
# - name: Cache dependencies
# uses: actions/cache@v4
# env:
# cache-name: cache-dependencies
# cache-name: ${{ steps.toolchain.outputs.cachekey }}
# with:
# path: |
# ~/.cargo/.crates.toml
Expand All @@ -54,14 +51,10 @@
# runs-on: ${{ matrix.os }}
# steps:
# - uses: actions/checkout@v4
# - uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: nightly
# override: true
# - uses: dtolnay/rust-toolchain@stable
# - run: cargo install cargo-tarpaulin
# - name: Generate test result and coverage report
# run: |
# cargo install cargo-tarpaulin
# cargo tarpaulin --engine ptrace -o lcov --output-dir coverage --coveralls $COVERALLS_TOKEN
# env:
# COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
# run: cargo tarpaulin --engine ptrace -o lcov --output-dir coverage
# - uses: coverallsapp/github-action@v2
# with:
# path-to-lcov: coverage/lcov.info
Loading