Skip to content

Some todo in ci

Some todo in ci #26

Workflow file for this run

name: Rust
#on:
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
on:
- push
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run tests
run: cargo test --verbose
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Fmt
run: cargo fmt --all -- --check
xtensa-esp32-example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Fmt
run: cd ./examples/rust-examples/xtensa-esp32 && cargo fmt --all -- --check
# TODO: to avoid setupping, ci should pass on prepared dockers on self-hosted runners
- name: Setup build environment
run: cargo install espup && espup install
- name: Build
run: cd ./examples/rust-examples/xtensa-esp32 && . $HOME/export-esp.sh && cargo build