Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,39 @@ jobs:
target/release/
key: ${{ steps.cache.outputs.cache-primary-key }}

no-std:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- crate: floresta-common
feature_args: ""
- crate: floresta-common
feature_args: "--features descriptors-no-std"

steps:
- uses: actions/checkout@v4

- uses: dtolnay/[email protected]
with:
# Common bare-metal Cortex-M target (no_std: `core` + `alloc`).
targets: thumbv7em-none-eabi

- name: Install ARM GCC (for secp256k1-sys)
run: |
sudo apt-get update
sudo apt-get install -y gcc-arm-none-eabi

- name: Build ${{ matrix.crate }} for no_std target
shell: bash
run: |
cargo build -p "${{ matrix.crate }}" \
--target thumbv7em-none-eabi \
--no-default-features \
${{ matrix.feature_args }} \
--locked

build-docker:
runs-on: ubuntu-latest
steps:
Expand Down
Loading