This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
Add support for nightly allocator_api-feature #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# Cancel any currently running workflows from the same PR, branch, or | |
# tag when a new workflow is triggered. | |
# | |
# https://stackoverflow.com/a/66336834 | |
concurrency: | |
cancel-in-progress: true | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
jobs: | |
# -------------------------------------------------------------------------- | |
# Check | |
check-riscv: | |
name: Check RISC-V | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
target: riscv32imc-unknown-none-elf | |
toolchain: stable | |
components: rust-src | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
target: riscv32imc-unknown-none-elf | |
toolchain: nightly | |
components: rust-src | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo +stable check --target=riscv32imc-unknown-none-elf | |
- run: cargo +nightly check --target=riscv32imc-unknown-none-elf | |
check-xtensa: | |
name: Check Xtensa | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
chip: [esp32, esp32s2, esp32s3] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: esp-rs/xtensa-toolchain@v1.5 | |
with: | |
default: true | |
ldproxy: false | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo check -Zbuild-std=core --target=xtensa-${{ matrix.chip }}-none-elf |