eadkp 0.19.0

Rust library for developing applications for NumWorks calculators running Epsilon OS. Provides low-level hardware interaction and high-level abstractions for display, input, battery, storage, and more.
Documentation
name: Rust CI

on:
  push:
  pull_request:

jobs:
  build:
    runs-on: ubuntu-latest
    env:
      EADKP_PRIMARY_BUILD: 1
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Cache cargo
        uses: actions/cache@v4
        with:
          path: |
            ~/.cargo/registry
            ~/.cargo/git
            target
          key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
          restore-keys: |
            ${{ runner.os }}-cargo-

      - name: Set up Node.js
        uses: actions/setup-node@v4
        with:
          node-version: '20'

      - name: Install ARM Toolchain
        run: |
          sudo apt-get update
          sudo apt-get install -y gcc-arm-none-eabi libnewlib-arm-none-eabi

      - name: Install nightly toolchain
        uses: dtolnay/rust-toolchain@nightly
        with:
          targets: thumbv7em-none-eabihf

      - name: Build library (host)
        run: cargo +nightly build --lib --release

      - name: Build library (thumbv7em-none-eabihf)
        run: cargo +nightly build --lib --release --target thumbv7em-none-eabihf

      - name: Build NWA example (host)
        run: cargo +nightly build --release --example simulator

      - name: Build NWA example (thumbv7em-none-eabihf)
        run: cargo +nightly build --release --example device --target thumbv7em-none-eabihf

      - name: Show NWA output info
        run: |
          ls -lah target/thumbv7em-none-eabihf/release/examples/device
          file target/thumbv7em-none-eabihf/release/examples/device
          sha256sum target/thumbv7em-none-eabihf/release/examples/device