diff --git a/.forgejo/workflows/ci-tests.yml b/.forgejo/workflows/ci-tests.yml new file mode 100755 index 0000000..63b9a67 --- /dev/null +++ b/.forgejo/workflows/ci-tests.yml @@ -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 diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml deleted file mode 100644 index 8097c0c..0000000 --- a/.github/workflows/ci-tests.yml +++ /dev/null @@ -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 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/Cargo.lock b/Cargo.lock old mode 100644 new mode 100755 diff --git a/Cargo.toml b/Cargo.toml old mode 100644 new mode 100755 index c30c1bc..853a582 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,16 +1,16 @@ [package] name = "binf" -version = "1.1.2" +version = "1.1.3" edition = "2021" license = "MIT" description = "A crate that adds utilities for dealing with binary flags" authors = ["DavidOnTop "] readme = "README.md" -repository = "https://git.davidon.top/public/binf.git" +repository = "https://git.davidon.top/davidontop/binf.git" documentation = "https://docs.rs/binf" [workspace] members = ["macros"] [dependencies] -binf_macros = { version = "1.1.1", path = "macros" } +binf_macros = { version = "1.1.3", path = "macros" } diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/macros/Cargo.toml b/macros/Cargo.toml old mode 100644 new mode 100755 index 3a4e512..1879382 --- a/macros/Cargo.toml +++ b/macros/Cargo.toml @@ -1,12 +1,12 @@ [package] name = "binf_macros" -version = "1.1.2" +version = "1.1.3" edition = "2021" license = "MIT" description = "A crate that adds utilities for dealing with binary flags" authors = ["DavidOnTop "] 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/" [lib] diff --git a/macros/src/lib.rs b/macros/src/lib.rs old mode 100644 new mode 100755 diff --git a/src/lib.rs b/src/lib.rs old mode 100644 new mode 100755 diff --git a/tests/container.rs b/tests/container.rs old mode 100644 new mode 100755 diff --git a/tests/tests.rs b/tests/tests.rs old mode 100644 new mode 100755