mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 21:05:35 +01:00
Added CI
This commit is contained in:
parent
cfe4790e68
commit
0efb77300e
1 changed files with 9 additions and 5 deletions
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
|
|
@ -73,6 +73,10 @@ jobs:
|
|||
platform: esp32-c3
|
||||
rustup-target: riscv32imc-unknown-none-elf
|
||||
|
||||
- backend: riscv-esp32-c6
|
||||
platform: esp32-c6
|
||||
rustup-target: riscv32imac-unknown-none-elf
|
||||
|
||||
installqemu:
|
||||
name: Get modern QEMU and cache it
|
||||
runs-on: ubuntu-24.04
|
||||
|
|
@ -158,7 +162,7 @@ jobs:
|
|||
run: rustup component add llvm-tools-preview
|
||||
|
||||
- name: Install lubudev espflash dependency
|
||||
if: ${{ matrix.input.platform == 'esp32-c3' }}
|
||||
if: contains(matrix.input.platform, 'esp32')
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y libudev-dev
|
||||
|
|
@ -171,11 +175,11 @@ jobs:
|
|||
|
||||
# Use precompiled if possible
|
||||
- name: Install espflash
|
||||
if: ${{ matrix.input.platform == 'esp32-c3' }}
|
||||
if: contains(matrix.input.platform, 'esp32')
|
||||
run: cargo install espflash --version 3.1.0 --force
|
||||
|
||||
- name: Install esptool.py
|
||||
if: ${{ matrix.input.platform == 'esp32-c3' }}
|
||||
if: contains(matrix.input.platform, 'esp32')
|
||||
run: pip install esptool
|
||||
|
||||
- name: Cache Dependencies
|
||||
|
|
@ -192,11 +196,11 @@ jobs:
|
|||
name: qemu
|
||||
|
||||
- name: Extract QEMU into local path
|
||||
if: ${{ matrix.input.platform != 'esp32-c3' }}
|
||||
if: contains(matrix.input.platform, 'esp32')
|
||||
run: tar -xf qemu.tar -C /usr/local/bin
|
||||
|
||||
- name: Extract ESP32 QEMU into local path
|
||||
if: ${{ matrix.input.platform == 'esp32-c3' }}
|
||||
if: contains(matrix.input.platform, 'esp32')
|
||||
run: sudo tar --strip-components=1 -xf qemu.tar -C /usr/local/ esp32/
|
||||
|
||||
- name: Check which QEMU is used
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue