mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
Fixes `no-std` builds for packages which intended to be `no-std` (without `alloc`). Updates a variety of MSRVs to 1.73 due to `flexible-transcript` no longer using `std-shims` to achieve 1.66 (as `std-shims` requires `alloc`). A future improvement would be for `std-shims` to have an `alloc` feature and only provide MSRV shims without it.
38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
name: no-std build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
paths:
|
|
- "common/**"
|
|
- "crypto/**"
|
|
- "networks/**"
|
|
- "tests/no-std/**"
|
|
|
|
pull_request:
|
|
paths:
|
|
- "common/**"
|
|
- "crypto/**"
|
|
- "networks/**"
|
|
- "tests/no-std/**"
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
|
|
|
|
- name: Install Build Dependencies
|
|
uses: ./.github/actions/build-dependencies
|
|
|
|
- name: Install RISC-V Toolchain
|
|
run: sudo apt update && sudo apt install -y gcc-riscv64-unknown-elf gcc-multilib && rustup target add riscv32imac-unknown-none-elf
|
|
|
|
- name: Verify no-std builds
|
|
run: |
|
|
CFLAGS=-I/usr/include cargo +nightly build --target riscv32imac-unknown-none-elf -Z build-std=core -p serai-no-std-tests
|
|
CFLAGS=-I/usr/include cargo +nightly build --target riscv32imac-unknown-none-elf -Z build-std=core,alloc -p serai-no-std-tests --features "alloc"
|