-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 986 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI Checks
on: [push, pull_request]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_TERM_COLOR: always
jobs:
std:
name: clippy tests, fmt, run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo clippy --tests
- run: cargo fmt -- --check
- run: cargo test --tests
xtensa:
name: clippy examples & lib, build examples
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: esp-rs/[email protected]
- run: cargo +esp clippy --target xtensa-esp32-none-elf -Z build-std=core --examples --lib
- run: cargo +esp build --release --target xtensa-esp32-none-elf -Z build-std=core --examples
release:
if: github.ref_type == 'tag'
name: create github release from updated tags
runs-on: ubuntu-latest
needs: [xtensa, std]
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: ncipollo/release-action@v1