From fd0443a85c276cafd0bea7014ec970362bb330b8 Mon Sep 17 00:00:00 2001 From: o2sh Date: Tue, 24 Dec 2024 15:49:43 +0100 Subject: [PATCH] simplify CI pipeline --- .github/workflows/ci.yml | 63 ++++------------------------------------ 1 file changed, 6 insertions(+), 57 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5aeb143eb..4782a942f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,41 +6,31 @@ on: - "docs/**" - "**.md" - "docs/vercel/**" - - ".gitpod.yml" pull_request: branches: [main] paths-ignore: - "docs/**" - "**.md" - "docs/vercel/**" - - ".gitpod.yml" env: CARGO_TERM_COLOR: always jobs: - build: - runs-on: ${{ matrix.os }} + CI: strategy: matrix: os: [ubuntu-latest, windows-latest, macOS-latest] - rust: [stable, nightly] + runs-on: ${{ matrix.os }} steps: - - name: Checkout repository + - name: Checkout uses: actions/checkout@v4 - name: Install Rust - uses: dtolnay/rust-toolchain@v1 - with: - toolchain: ${{ matrix.rust }} - - - name: Cache - uses: Swatinem/rust-cache@v2 + uses: actions-rust-lang/setup-rust-toolchain@v1 - - name: Build Debug - run: | - rustc --version - cargo build --features=fail-on-deprecated + - name: Build + run: cargo build --features=fail-on-deprecated - name: Run tests run: cargo test @@ -50,44 +40,3 @@ jobs: - name: Run onefetch (with commitgraph) run: git commit-graph write --no-progress --reachable && cargo run - - lint: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Install Rust - uses: dtolnay/rust-toolchain@v1 - with: - toolchain: stable - components: clippy,rustfmt - - - name: Run rustfmt - run: cargo fmt -- --check - - - name: Run clippy - run: cargo clippy - - coverage: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Install Rust - uses: dtolnay/rust-toolchain@v1 - with: - toolchain: stable - - - name: Cache - uses: Swatinem/rust-cache@v2 - - - name: Install cargo-tarpaulin - run: cargo install cargo-tarpaulin - - - name: Coverage with tarpaulin - run: cargo tarpaulin --workspace --out lcov - - - name: Upload to codecov.io - uses: codecov/codecov-action@v5