Skip to content
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
38 changes: 26 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,41 @@ name: CI

on:
push:
branches: [ main ]
branches:
- main
pull_request:
workflow_dispatch:
branches:
- main

permissions:
contents: read

env:
CARGO_TERM_COLOR: always

jobs:
lint:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Checkout
uses: actions/checkout@v6
# https://github.com/actions/cache/blob/main/examples.md#rust---cargo
# Depends on `Cargo.lock` --> Has to be after checkout.
- uses: actions/cache@v5
with:
components: rustfmt, clippy

path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust
run: |
rustup toolchain install nightly --no-self-update --profile minimal --component rust-src,rustfmt,clippy
- name: Check formatting
run: cargo fmt --all -- --check

- name: Run tests
run: cargo test --all-features --all-targets
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings

run: cargo clippy --all-features --all-targets -- --no-deps --deny warnings -W clippy::pedantic
291 changes: 0 additions & 291 deletions .github/workflows/release.yml

This file was deleted.

3 changes: 2 additions & 1 deletion Cargo.nix
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@ rec {
}
];
src = lib.cleanSourceWith { filter = sourceFilter; src = ./.; };
libName = "rce_runner";
authors = [
"ToolKitHub"
"ToolKitHub <xosnrdev@gmail.com>"
];
dependencies = [
{
Expand Down
Loading