Skip to content

Upgrade to newest stable Rust version, upgrade dependencies, workflow… #24

Upgrade to newest stable Rust version, upgrade dependencies, workflow…

Upgrade to newest stable Rust version, upgrade dependencies, workflow… #24

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Arduino Uno
strategy:
fail-fast: true
matrix:
board:
- arduino-uno
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rust-src
- name: Install avr-gcc, binutils, and libc
run: sudo apt-get install -y avr-libc binutils-avr gcc-avr
- name: Build
run: cargo build --release
- uses: actions/upload-artifact@v2
with:
name: nswi170-final-project
path: target/avr-atmega328p/release/nswi170-final-project.elf