Skip to content

Continuous integration #665

Continuous integration

Continuous integration #665

Workflow file for this run

on:
push:
branches: master
pull_request:
merge_group:
name: Continuous integration
jobs:
ci:
name: CI
runs-on: ubuntu-latest
needs: [check]
if: always()
steps:
- name: Done
run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
check:
runs-on: ubuntu-latest
strategy:
matrix:
mcu:
- stm32f100
- stm32f101
- stm32f103
- stm32f105
- stm32f107
rust:
- stable
include:
- rust: nightly
mcu: stm32f103
experimental: true
steps:
- uses: actions/checkout@v3
- name: Use the latest ${{ matrix.rust }} rustc
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
- name: Add Cortex-M3 target
run: rustup target add thumbv7m-none-eabi
- uses: actions-rs/cargo@v1
with:
command: check
args: --features=${{ matrix.mcu }},rtic,high --examples
- uses: actions-rs/cargo@v1
with:
command: test
args: --features=${{ matrix.mcu }} --target x86_64-unknown-linux-gnu --lib