fix actions
This commit is contained in:
parent
dd0f210f64
commit
ed547c757a
12 changed files with 47 additions and 63 deletions
42
.forgejo/workflows/ci-tests.yml
Executable file
42
.forgejo/workflows/ci-tests.yml
Executable file
|
@ -0,0 +1,42 @@
|
||||||
|
name: checks
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "main"
|
||||||
|
- "feat/*"
|
||||||
|
pull_request:
|
||||||
|
pull_request_target:
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
RUST_BACKTRACE: full
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: self-hosted
|
||||||
|
timeout-minutes: 10
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Run tests
|
||||||
|
run: cargo test --verbose --all-features --workspace --tests --bins --lib
|
||||||
|
- name: Run doctests
|
||||||
|
run: cargo test --verbose --all-features --workspace --doc
|
||||||
|
|
||||||
|
clippy:
|
||||||
|
runs-on: self-hosted
|
||||||
|
timeout-minutes: 10
|
||||||
|
steps:
|
||||||
|
- name: Checkout sources
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Run clippy
|
||||||
|
run: cargo clippy -- -D warnings
|
||||||
|
|
||||||
|
format:
|
||||||
|
runs-on: self-hosted
|
||||||
|
timeout-minutes: 10
|
||||||
|
steps:
|
||||||
|
- name: Checkout sources
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Run cargo fmt
|
||||||
|
run: cargo fmt --all -- --check
|
58
.github/workflows/ci-tests.yml
vendored
58
.github/workflows/ci-tests.yml
vendored
|
@ -1,58 +0,0 @@
|
||||||
name: Rust
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- "main"
|
|
||||||
- "feat/*"
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- "main"
|
|
||||||
- "feat/*"
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
env:
|
|
||||||
CARGO_TERM_COLOR: always
|
|
||||||
RUST_BACKTRACE: full
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
|
||||||
- name: Run tests
|
|
||||||
run: cargo test --verbose --all-features --workspace --tests --bins --lib
|
|
||||||
- name: Run doctests
|
|
||||||
run: cargo test --verbose --all-features --workspace --doc
|
|
||||||
|
|
||||||
clippy_check:
|
|
||||||
name: Clippy
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 30
|
|
||||||
steps:
|
|
||||||
- name: Checkout sources
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Install toolchain
|
|
||||||
uses: dtolnay/rust-toolchain@nightly
|
|
||||||
with:
|
|
||||||
components: clippy
|
|
||||||
- name: Run clippy
|
|
||||||
run: cargo clippy -- -D warnings
|
|
||||||
|
|
||||||
format:
|
|
||||||
name: Format
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 30
|
|
||||||
steps:
|
|
||||||
- name: Checkout sources
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Install toolchain
|
|
||||||
uses: dtolnay/rust-toolchain@nightly
|
|
||||||
with:
|
|
||||||
components: rustfmt
|
|
||||||
- name: Run cargo fmt
|
|
||||||
run: cargo fmt --all -- --check
|
|
0
.gitignore
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
Cargo.lock
generated
Normal file → Executable file
0
Cargo.lock
generated
Normal file → Executable file
6
Cargo.toml
Normal file → Executable file
6
Cargo.toml
Normal file → Executable file
|
@ -1,16 +1,16 @@
|
||||||
[package]
|
[package]
|
||||||
name = "binf"
|
name = "binf"
|
||||||
version = "1.1.2"
|
version = "1.1.3"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
description = "A crate that adds utilities for dealing with binary flags"
|
description = "A crate that adds utilities for dealing with binary flags"
|
||||||
authors = ["DavidOnTop <me@davidon.top>"]
|
authors = ["DavidOnTop <me@davidon.top>"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://git.davidon.top/public/binf.git"
|
repository = "https://git.davidon.top/davidontop/binf.git"
|
||||||
documentation = "https://docs.rs/binf"
|
documentation = "https://docs.rs/binf"
|
||||||
|
|
||||||
[workspace]
|
[workspace]
|
||||||
members = ["macros"]
|
members = ["macros"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
binf_macros = { version = "1.1.1", path = "macros" }
|
binf_macros = { version = "1.1.3", path = "macros" }
|
||||||
|
|
0
LICENSE
Normal file → Executable file
0
LICENSE
Normal file → Executable file
0
README.md
Normal file → Executable file
0
README.md
Normal file → Executable file
4
macros/Cargo.toml
Normal file → Executable file
4
macros/Cargo.toml
Normal file → Executable file
|
@ -1,12 +1,12 @@
|
||||||
[package]
|
[package]
|
||||||
name = "binf_macros"
|
name = "binf_macros"
|
||||||
version = "1.1.2"
|
version = "1.1.3"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
description = "A crate that adds utilities for dealing with binary flags"
|
description = "A crate that adds utilities for dealing with binary flags"
|
||||||
authors = ["DavidOnTop <me@davidon.top>"]
|
authors = ["DavidOnTop <me@davidon.top>"]
|
||||||
readme = "../README.md"
|
readme = "../README.md"
|
||||||
repository = "https://git.davidon.top/public/binf.git"
|
repository = "https://git.davidon.top/davidontop/binf.git"
|
||||||
documentation = "https://docs.rs/binf_macros/"
|
documentation = "https://docs.rs/binf_macros/"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
|
|
0
macros/src/lib.rs
Normal file → Executable file
0
macros/src/lib.rs
Normal file → Executable file
0
src/lib.rs
Normal file → Executable file
0
src/lib.rs
Normal file → Executable file
0
tests/container.rs
Normal file → Executable file
0
tests/container.rs
Normal file → Executable file
0
tests/tests.rs
Normal file → Executable file
0
tests/tests.rs
Normal file → Executable file
Loading…
Reference in a new issue