-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (37 loc) · 1.16 KB
/
test_esp.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: 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: Build esp32c3
working-directory: ../esp32c3
run: cargo +nightly build --release
- name: Install espup
run: cd .. && cargo install espup
- name: Install esp toolchain
run: cd .. && espup install
- name: Build esp32s3
working-directory: ../esp32s3
run: cargo +esp build --release