Skip to content

tentative riscv build setup #222

tentative riscv build setup

tentative riscv build setup #222

Workflow file for this run

name: build_on_push
on:
push:
branches: [ "main", "rp2350_ice", "pico2-ice_develop" ]
pull_request:
branches: [ "main", "develop", "pico2-ice_develop" ]
workflow_dispatch:
jobs:
firmware:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
cmake_build_type: [Debug]
pico: [ {board: "pico_ice", platform: "rp2040"}, {board: "pico2_ice", platform: "rp2350"}, {board: "pico2_ice", platform: "rp2350-riscv"}]
example:
- rp2_blinky
- rp2_blinky_cplusplus
- rp2_cram
- rp2_flash
- rp2_flash_repl
- rp2_fpga
- rp2_fpga_io
- rp2_hello_world
- rp2_sram
- rp2_usb_fpga
- rp2_usb_keyboard
- rp2_usb_spi
- rp2_usb_uart
- rp2_usb_uf2
steps:
- uses: actions/checkout@v4
- name: arm-none-eabi-gcc GNU Arm Embedded Toolchain
if: matrix.pico.platform == "rp2040" || matrix.pico.platform == "rp2350"
uses: carlosperate/[email protected]
- name: riscv Toolchain
if: matrix.pico.platform == "rp2350-riscv"
uses: ConorMacBride/install-package@v1
with:

Check failure on line 45 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 45
apt: gcc-riscv64-unknown-elf binutils-riscv64-unknown-elf
- name: riscv Toolchain env
if: matrix.pico.platform == "rp2350-riscv"
run: |
echo "PICO_GCC_TRIPLE=riscv64-unknown-elf" >> $GITHUB_ENV
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
- name: Cache Submodules
id: cache-submodules
uses: actions/cache@v4
with:
path: lib
key: ${{ runner.os }}-build-${{ hashFiles('lib/**') }}
restore-keys: |
${{ runner.os }}-build-
- name: Fetch submodules
if: steps.cache-submodules.outputs.cache-hit != 'true'
run: |
git submodule update --init
git -C lib/pico-sdk submodule update --init
- name: Build each example on every commit
run: |
cd examples/${{ matrix.example }}
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} -DPICO_BOARD=${{ matrix.pico.board }} -DPICO_PLATFORM=${{ matrix.pico.platform }} ..
make -j4