-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.29 KB
/
rust.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
36
37
38
39
40
41
42
name: Continuous Integration for ESP32
on:
push:
paths-ignore:
- "**/README.md"
- "**/logo"
- "**/schematic"
- "LICENCE"
- "logo.png"
- ".gitignore"
pull_request:
workflow_dispatch:
jobs:
rust-checks:
name: Rust Checks
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install ESP32 Toolchain with espup
run: |
curl -L https://github.com/esp-rs/embuild/releases/latest/download/ldproxy-x86_64-unknown-linux-gnu.zip -o $HOME/.cargo/bin/ldproxy.zip
unzip "$HOME/.cargo/bin/ldproxy.zip" -d "$HOME/.cargo/bin/"
chmod a+x $HOME/.cargo/bin/ldproxy
curl -L https://github.com/esp-rs/espup/releases/latest/download/espup-x86_64-unknown-linux-gnu -o espup
chmod a+x espup
./espup install
- name: Set ESP32 Environment Variables
run: |
source $HOME/export-esp.sh # Source environment variables
export ESP_IDF_PATH=$HOME/.espressif/esp-idf
echo "ESP_IDF_PATH set to $ESP_IDF_PATH"
- name: Enable Caching
uses: Swatinem/rust-cache@v2
- name: Build Project for ESP32
run: RUST_BACKTRACE=full cargo build --release --target xtensa-esp32-espidf