CIEspIdfMaster #1134
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CIEspIdfMaster | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
schedule: | |
- cron: '50 5 * * *' | |
env: | |
rust_toolchain: nightly | |
jobs: | |
compile: | |
name: Compile | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup | Checkout | |
uses: actions/checkout@v3 | |
- name: Setup | Rust | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: ${{ env.rust_toolchain }} | |
components: rustfmt, clippy, rust-src | |
- name: Build | Fmt Check | |
run: cargo fmt -- --check | |
- name: Build | Compile Native ESP-IDF master no_std | |
run: export RUSTFLAGS="--cfg espidf_time64"; export ESP_IDF_VERSION=master; export ESP_IDF_SDKCONFIG_DEFAULTS=$(pwd)/.github/configs/sdkconfig.defaults; cargo clean; cargo build --no-default-features --target riscv32imc-esp-espidf -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort | |
- name: Setup | ldproxy | |
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 | |
- name: Build | Compile Native ESP-IDF master examples | |
run: export RUSTFLAGS="--cfg espidf_time64"; export ESP_IDF_VERSION=master; export ESP_IDF_SDKCONFIG_DEFAULTS=$(pwd)/.github/configs/sdkconfig.defaults; cargo clean; cargo build --examples --target riscv32imc-esp-espidf -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort |