feat: update rmk version #51
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: Test rmk-template for esp32 | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install expect | |
run: sudo apt install expect -y | |
- name: Install cargo-generate | |
run: cd .. && cargo install cargo-generate | |
- name: Install ldproxy | |
run: cd .. && cargo install ldproxy | |
# - name: Switch to nightly | |
# run: cd .. && rustup default nightly | |
# - name: Add targets to nightly | |
# run: cd .. && rustup target add riscv32imc-unknown-none-elf --toolchain nightly | |
# - name: Add components to nightly | |
# run: cd .. && rustup component add rust-src --toolchain nightly | |
- name: Run expect script | |
run: cd .. && expect rmk-template/gen_test_projects.sh | |
- name: Install espup | |
run: cd .. && cargo install espup | |
- name: Install esp toolchain | |
run: cd .. && espup install | |
- name: Build esp32c3 | |
working-directory: ../esp32c3 | |
run: cargo +esp build --release | |
- name: Build esp32s3 | |
working-directory: ../esp32s3 | |
run: cargo +esp build --release |