Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Commit

Permalink
add core to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Jun 6, 2024
1 parent 69a3582 commit 173a541
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: all

on: [push, pull_request]

Expand All @@ -7,9 +7,7 @@ env:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Run tests
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/batcher.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: batcher

on: [push, pull_request]

Expand All @@ -7,9 +7,7 @@ env:

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
Expand Down
70 changes: 70 additions & 0 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: core

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Rust toolchain
run: rustup default nightly

- name: Install cargo-hack
run: cargo install cargo-hack

- name: All
working-directory: ./core
run: cargo test --all-features

- name: Powerset
working-directory: ./core
run: cargo hack test --feature-powerset --lib

- name: Minimal versions
working-directory: ./core
run: cargo hack test --feature-powerset --lib -Z minimal-versions

embedded:
name: Build (embedded)
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Rust toolchain
run: |
rustup default nightly
rustup target add thumbv6m-none-eabi
- name: Install cargo-hack
run: cargo install cargo-hack

- name: Powerset
working-directory: ./core
run: cargo hack check --each-feature --exclude-features std,alloc,implicit_rt,implicit_internal_rt -Z avoid-dev-deps --target thumbv6m-none-eabi

miri:
name: Test (Miri)
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Miri
run: |
rustup toolchain install nightly --component miri
cargo +nightly miri setup
- name: Default features
working-directory: ./core
run: cargo +nightly miri test --lib

- name: No features
working-directory: ./core
run: cargo +nightly miri test --lib --no-default-features

0 comments on commit 173a541

Please sign in to comment.