embedded-canvas 0.3.2

Draw anything with ease on the Canvas before drawing it to your small hardware display
Documentation
name: MSRV build

on:
  push:
  # will checkout the default branch `main`
  schedule:
    # run every Friday at 17:00
    - cron: '00 17 * * 5'
  # Or ran manually
  workflow_dispatch:

# Stops the running workflow of previous pushes
concurrency:
  # cancel per workflow
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

env:
  RUST_MSRV_VERSION: '1.71'

jobs:
  build:
    name: Test and build
    runs-on: ubuntu-latest

    steps:
    - name: Rust setup (MSRV)
      uses: dtolnay/rust-toolchain@master
      with:
        toolchain: ${{ env.RUST_MSRV_VERSION }}

    - uses: Swatinem/rust-cache@v2

    - name: Checkout
      uses: actions/checkout@v5

    - name: Install SDL2
      run: |
        sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
        sudo apt-get update -y -qq
        sudo apt-get install libsdl2-dev

    - run: cargo check
    - run: cargo test