Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier committed Jul 17, 2024
1 parent e958be3 commit 73c3146
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
name: Checks
on:
push:
branches:
- main
pull_request:
branches:
- main

env:
CACHE_VERSION: 0

CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
CARGO_TERM_COLOR: always

GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

RUST_BACKTRACE: full

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
cargo-checks:
name: Task cargo ${{ matrix.action }}
Expand All @@ -37,10 +36,9 @@ jobs:
key: ${{ matrix.action }}
- name: Cargo clippy
if: matrix.action == 'clippy'
uses: actions-rs/clippy-check@v1
uses: giraffate/clippy-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --workspace --all-features --all-targets --locked
clippy_flags: --workspace --all-features --all-targets --locked
- name: Cargo fmt
if: matrix.action == 'fmt'
run: cargo fmt --all -- --check
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
name: Release

env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
CARGO_TERM_COLOR: always

RUST_BACKTRACE: full

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

env:
CARGO_TERM_COLOR: always

jobs:
release:
name: Release
Expand Down
4 changes: 2 additions & 2 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[toolchain]
channel = "nightly"
components = ["cargo", "clippy", "rustc", "rustfmt", "rust-src"]
channel = "stable"
components = ["cargo", "clippy", "rust-src", "rustc", "rustfmt"]
profile = "minimal"

0 comments on commit 73c3146

Please sign in to comment.