Files
2025-03-23 19:06:13 -07:00

28 lines
710 B
YAML

name: Test suite
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: "0 2 * * 1-5"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Prepare the Rust build environment
run:
docker build . --file .github/Dockerfile.ci --tag rust-avr-ci:$GITHUB_RUN_NUMBER
- name: Compile the crate for the AVR atmega328p
run:
docker run rust-avr-ci:$GITHUB_RUN_NUMBER build -Z build-std=core --target avr-atmega328p.json --release --all --bins --examples
- name: Compile the crate for the host machine and and run tests
run:
docker run rust-avr-ci:$GITHUB_RUN_NUMBER test --all