Skip to content

Commit

Permalink
fix(libmake): simplifying ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienrousseau committed Mar 4, 2023
1 parent c55e15c commit 6c7fa19
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 52 deletions.
49 changes: 14 additions & 35 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,81 +12,60 @@ on:
jobs:
check:
name: Check
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- rust: stable
target: x86_64-unknown-linux-gnu
os: ubuntu-latest
runs-on: ubuntu-latest

steps:
- name: Checkout sources
id: checkout
uses: actions/checkout@v3
- uses: actions/checkout@v2

- name: Install stable toolchain
id: toolchain
uses: actions-rs/toolchain@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Cache dependencies
id: cache
uses: actions/cache@v2
- uses: actions/cache@v2
with:
path: ~/.cargo
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- name: Run cargo check
id: run-check
uses: actions-rs/cargo@v1
- uses: actions-rs/cargo@v1
with:
command: check

test:
name: Test Suite 🦀
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- rust: stable
target: x86_64-unknown-linux-gnu
os: ubuntu-latest
runs-on: ubuntu-latest

steps:
- name: Checkout sources 🛎️
id: checkout
uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Install stable toolchain 🦀
id: toolchain
uses: actions-rs/toolchain@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true

- name: Cache dependencies 📦
id: cache
uses: actions/cache@v2
- uses: actions/cache@v2
with:
path: ~/.cargo
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- name: Install cargo-hack 🦀
- uses: taiki-e/install-action@cargo-hack
id: install-cargo-hack
uses: taiki-e/install-action@cargo-hack

- name: Run Cargo Test 🦀
id: run-check-test
if: github.ref == 'refs/heads/main'
run: |
cargo test --all-targets --workspace --all-features
- if: github.ref == 'refs/heads/main'
run: cargo test --all-targets --workspace --all-features

coverage:
name: Coverage 🧪
Expand Down
39 changes: 22 additions & 17 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,22 @@ unlicensed = "deny"
# List of explicitly allowed licenses
# See https://spdx.org/licenses/ for list of possible licenses
# [possible values: any SPDX 3.7 short identifier (+ optional exception)].
allow = ["MPL-2.0"]
allow = [
"Apache-2.0",
"MIT",
"CC0-1.0",
"ISC",
"0BSD",
"BSD-2-Clause",
"BSD-3-Clause",
"Unlicense",
"Unicode-DFS-2016",
]

# List of banned licenses
[bans]
multiple-versions = "deny"

# List of explicitly disallowed licenses
# See https://spdx.org/licenses/ for list of possible licenses
# [possible values: any SPDX 3.7 short identifier (+ optional exception)].
deny = []

# The lint level for licenses considered copyleft
copyleft = "deny"
Expand All @@ -29,10 +39,6 @@ allow-osi-fsf-free = "either"
# [possible values: any between 0.0 and 1.0].
confidence-threshold = 0.8

[bans]
# Lint level for when multiple versions of the same crate are detected
multiple-versions = "warn"

# The graph highlighting used when creating dotgraphs for crates
# with multiple versions
# * lowest-version - The path to the lowest versioned duplicate is highlighted
Expand All @@ -41,8 +47,7 @@ multiple-versions = "warn"
highlight = "all"

# List of crates that are allowed. Use with care!
allow = [
]
allow = []

# List of crates to deny
deny = [
Expand All @@ -51,16 +56,16 @@ deny = [
]

# Certain crates/versions that will be skipped when doing duplicate detection.
skip = [
]
skip = []

# Similarly to `skip` allows you to skip certain crates during duplicate detection,
# unlike skip, it also includes the entire tree of transitive dependencies starting at
# the specified crate, up to a certain depth, which is by default infinite
skip-tree = [
]
skip-tree = []


[advisories]
ignore = [
]
notice = "deny"
unmaintained = "deny"
unsound = "deny"
vulnerability = "deny"

0 comments on commit 6c7fa19

Please sign in to comment.