2023-04-22 14:49:52 +00:00
|
|
|
name: no-std build
|
2023-04-22 08:38:47 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- develop
|
2023-07-17 05:04:05 +00:00
|
|
|
paths:
|
|
|
|
- "common/**"
|
|
|
|
- "crypto/**"
|
|
|
|
- "coins/**"
|
|
|
|
- "tests/no-std/**"
|
2023-07-20 23:34:10 +00:00
|
|
|
|
2023-04-22 08:38:47 +00:00
|
|
|
pull_request:
|
2023-07-20 23:34:10 +00:00
|
|
|
paths:
|
|
|
|
- "common/**"
|
|
|
|
- "crypto/**"
|
|
|
|
- "coins/**"
|
|
|
|
- "tests/no-std/**"
|
|
|
|
|
2023-07-17 05:04:05 +00:00
|
|
|
workflow_dispatch:
|
2023-04-22 08:38:47 +00:00
|
|
|
|
|
|
|
jobs:
|
2023-04-22 14:49:52 +00:00
|
|
|
build:
|
2023-04-22 08:38:47 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-15 18:30:18 +00:00
|
|
|
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
|
2023-04-22 08:38:47 +00:00
|
|
|
|
|
|
|
- name: Install Build Dependencies
|
|
|
|
uses: ./.github/actions/build-dependencies
|
|
|
|
with:
|
|
|
|
github-token: ${{ inputs.github-token }}
|
|
|
|
|
2023-08-21 12:56:37 +00:00
|
|
|
- name: Install RISC-V Toolchain
|
2023-09-15 18:54:55 +00:00
|
|
|
run: sudo apt update && sudo apt install -y gcc-riscv64-unknown-elf gcc-multilib
|
2023-08-21 12:56:37 +00:00
|
|
|
|
2023-04-22 08:38:47 +00:00
|
|
|
- name: Verify no-std builds
|
2023-08-21 12:56:37 +00:00
|
|
|
run: cd tests/no-std && CFLAGS=-I/usr/include cargo build --target riscv32imac-unknown-none-elf
|