Skip to content

Commit

Permalink
update ci and add feature gates
Browse files Browse the repository at this point in the history
  • Loading branch information
28Smiles committed Aug 26, 2023
1 parent ba9fa6f commit 2f18af0
Show file tree
Hide file tree
Showing 6 changed files with 486 additions and 238 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,20 @@ env:

jobs:
build:

strategy:
matrix:
features: [ "", "arrayvec", "heapless", "vec" ]
rust: [ "nightly", "nightly-2023-05-31" ]
name: Build and Test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: ${{ matrix.rust }}
override: true
- name: Build
run: cargo build --verbose
run: cargo build --verbose --no-default-features ${{ matrix.features == '' && ' ' || format('--features {0}', matrix.features) }}
- name: Run tests
run: cargo test --verbose
run: cargo test --verbose --no-default-features ${{ matrix.features == '' && ' ' || format('--features {0}', matrix.features) }}
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@ heapless = { version = "0", default-features = false, optional = true }

[dev-dependencies]
simple-dns = "0"
arrayvec = "0"
heapless = "0"

0 comments on commit 2f18af0

Please sign in to comment.