Skip to content

Commit

Permalink
Add test that stable toolchain builds if allocator is disabled (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
schteve committed Jan 3, 2023
1 parent 191dd52 commit b53e66d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,27 @@ jobs:
# run: cargo test
#- name: Clippy
# run: cargo clippy -- -Dwarnings
freertos-rust-stable:
name: Build freertos-rust using stable
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings # Warnings disabled only in CI
steps:
- name: Clone
uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
~/.rustup
target
key: ${{ runner.os }}-${{ runner.arch }}-stable
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Build
run: cargo build --verbose --no-default-features --features=sync,time,hooks,interrupt --package freertos-rust # Don't build the whole workspace because the examples use nightly features which will fail the build
freertos-rust-examples:
name: Build examples
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion freertos-rust/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![cfg_attr(feature = "allocator", feature(allocator_api))]
//! # FreeRTOS for Rust
//!
//! Rust interface for the FreeRTOS embedded operating system. Requires nightly Rust.
//! Rust interface for the FreeRTOS embedded operating system. Requires nightly Rust if the allocator is used (which is the default).
//! It is assumed that dynamic memory allocation is provided on the target system.
//!
//! This library interfaces with FreeRTOS using a C shim library which provides function
Expand Down

0 comments on commit b53e66d

Please sign in to comment.