-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(libmake): 🎨 template optimisations and dependencies upgrade
- Loading branch information
1 parent
34ba474
commit 3432538
Showing
11 changed files
with
589 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: 🧪 Audit | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- feat/{name} | ||
pull_request: | ||
branches: | ||
- feat/{name} | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
dependencies: | ||
name: Audit dependencies | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: hecrj/setup-rust-action@v2 | ||
- name: Install cargo-audit | ||
run: cargo install cargo-audit | ||
|
||
- uses: actions/checkout@v4 | ||
- name: Resolve dependencies | ||
run: cargo update | ||
|
||
- name: Audit vulnerabilities | ||
run: cargo audit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: 🧪 Check | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- feat/{name} | ||
pull_request: | ||
branches: | ||
- feat/{name} | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
all: | ||
name: Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: hecrj/setup-rust-action@v2 | ||
with: | ||
components: clippy | ||
- uses: actions/checkout@v4 | ||
- name: Check lints | ||
run: cargo check --all-targets --workspace --all-features |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: 📶 Coverage | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
coverage: | ||
name: Code Coverage | ||
runs-on: ubuntu-latest | ||
env: | ||
CARGO_INCREMENTAL: "0" | ||
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests" | ||
RUSTDOCFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests" | ||
|
||
steps: | ||
# Checkout the repository | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Setup Rust nightly | ||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
id: toolchain | ||
with: | ||
toolchain: nightly | ||
override: true | ||
|
||
# Configure cache for Cargo | ||
- name: Cache Cargo registry, index | ||
uses: actions/cache@v4 | ||
id: cache-cargo | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
~/.cargo/bin | ||
~/.cargo/git | ||
key: linux-${{ steps.toolchain.outputs.rustc_hash }}-rust-cov-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
# Run tests with all features | ||
- name: Test (cargo test) | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: "--workspace" | ||
|
||
# Install grcov | ||
- uses: actions-rs/[email protected] | ||
id: coverage | ||
|
||
# Upload to Codecov.io | ||
- name: Upload to Codecov.io | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: ${{ steps.coverage.outputs.report }} |
Oops, something went wrong.