Skip to content

Update all time dependent crates with new API #80

Update all time dependent crates with new API

Update all time dependent crates with new API #80

Workflow file for this run

name: Check rust code
on:
push:
paths-ignore:
- "**/README.md"
pull_request:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
rust-checks:
name: Rust checks
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- linux
- esp32
- esp32s3
steps:
- name: Setup | Checkout repository
uses: actions/checkout@v4
- name: Setup | Enable cache
uses: Swatinem/rust-cache@v2
with:
key: "${{ matrix.target }}"
- name: Setup | Rust stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
target: wasm32-wasip1, wasm32-unknown-unknown
- name: Setup | Rust esp xtensa toolchain
if: matrix.target == 'esp32' || matrix.target == 'esp32s3'
uses: esp-rs/[email protected]
with:
default: true
buildtargets: esp32,esp32s3
ldproxy: true
- name: Setup | Install necessary dependencies
run: sudo apt-get install -y libsdl2-dev gcc-multilib
- name: Setup | Build and source build tool
run: source Export.sh
- name: Check | Formatting
run: Build_tool/target/release/Build_tool format --all -- --check --color always
- name: Check | Clippy
run: Build_tool/target/release/Build_tool clippy ${{ matrix.target }} --all-features --workspace -- -D warnings
- name: Run | Tests
run: Build_tool/target/release/Build_tool test ${{ matrix.target }} --all -- --include-ignored