Skip to content
Merged
Show file tree
Hide file tree
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
29 changes: 29 additions & 0 deletions .github/workflows/cross.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# SPDX-License-Identifier: Apache-2.0

on: [push, pull_request]

name: Cross-compile

jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
target:
- thumbv6m-none-eabi
- thumbv7m-none-eabi
steps:
- name: Checkout sources
uses: actions/checkout@v4

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

- name: Build for target
run: cargo build --release --target=${{ matrix.target }}
2 changes: 2 additions & 0 deletions demos/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
//! Demos crate for picojson-rs
//!
//! This crate contains demonstration code and examples.

#![cfg_attr(not(test), no_std)]
Loading