Skip to content

Add CI job for avr-unknown-gnu-atmega328 #180

Add CI job for avr-unknown-gnu-atmega328

Add CI job for avr-unknown-gnu-atmega328 #180

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- thumbv7em-none-eabi
- thumbv6m-none-eabi # like the Cortex-M0+
- x86_64-unknown-linux-gnu
- x86_64-pc-windows-msvc
steps:
- name: Install build dependencies
shell: bash
run: |
env && pwd && sudo apt-get update -y -qq && sudo apt-get install -y -qq llvm libc6-dev-i386 libclang-dev
- uses: fiam/arm-none-eabi-gcc@v1
with:
release: "9-2020-q2"
- name: Install rust
run: rustup show
- uses: actions/checkout@v3
- name: Check
run: |
cargo check --all-targets
cargo check --all-targets --all-features
cargo check --all-targets --no-default-features
cargo check --all-targets --no-default-features --features serde
cargo check --all-targets --no-default-features --features dir-entry-path
- name: Build
run: cargo build --release --verbose
- name: Run tests
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: >
cargo test &&
cargo test --release
- name: Build Documentation
run: cargo doc --no-deps
jobs:

Check failure on line 51 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 51
build-avr:
runs-on: ubuntu-latest
steps:
- name: Install build dependencies
shell: bash
run: |
env && pwd && sudo apt-get update -y -qq && sudo apt-get install -y -qq llvm gcc-avr avr-libc libclang-dev
- name: Install rust
run: rustup toolchain install --profile minimal --component=rust-src nightly
- name: Path delog
run: echo 'delog = { version = "0.1.6", git = "https://github.com/LechevSpace/delog.git", rev = "e83f3fd" }' >> Cargo.toml
- name: Build avr
run: cargo +nightly build -Z build-std=core --target=avr-unknown-gnu-atmega328 --release