This repository was archived by the owner on Sep 2, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +44
-1
lines changed
Expand file tree Collapse file tree 3 files changed +44
-1
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+
3+ jobs :
4+ build :
5+ docker :
6+ - image : cimg/rust:1.53.0
7+
8+ steps :
9+ - checkout
10+ - run :
11+ name : Install Toolchain
12+ command : bash toolchain.sh
13+ - run :
14+ name : Install AVR-GCC
15+ command : |
16+ sudo apt update
17+ sudo apt install -y gcc-avr avr-libc binutils-avr avrdude
18+ - run :
19+ name : Check formatting
20+ command : |
21+ rustfmt --version
22+ cargo fmt --all -- --check
23+ - run :
24+ name : Test Examples
25+ command : bash test_examples.sh
26+
Original file line number Diff line number Diff line change 1+ cd examples
2+ for chip in * ; do
3+ cd $chip
4+ for example in * ; do
5+ cd $example
6+ echo " Testing $example for $chip "
7+ if [[ $chip == " atmega328p" ]];
8+ then
9+ AVR_CPU_FREQUENCY_HZ=16000000 cargo +nightly-2021-01-07 build -Z build-std=core --release --target ../../../avr-chips/avr-atmega328p.json >> /dev/null || exit 1
10+ else
11+ AVR_CPU_FREQUENCY_HZ=16000000 cargo +nightly-2021-01-07 build -Z build-std=core --release --target ../../../avr-chips/avr-atmega2560.json >> /dev/null || exit 1
12+ fi
13+ cd ..
14+ done
15+ cd ..
16+ done
Original file line number Diff line number Diff line change 11rustup toolchain install nightly-2021-01-07
22rustup override set nightly-2021-01-07
3- rustup +nightly-2021-01-07 component add rust-src
3+ rustup +nightly-2021-01-07 component add rustfmt-preview
4+ rustup +nightly-2021-01-07 component add rust-src
You can’t perform that action at this time.
0 commit comments