Skip to content

chore: add build pipelinet #5

chore: add build pipelinet

chore: add build pipelinet #5

Workflow file for this run

name: Badgebagic Firmware build
on: [ push, pull_request ]
env:
MRS_TOOLCHAIN: MRS_Toolchain_Linux_x64_V1.91
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache toolchain
id: cache-toolchain
uses: actions/cache@v4
with:
path: ${{ env.MRS_TOOLCHAIN }}
key: ${{ env.MRS_TOOLCHAIN }}-cache
- name: Download toolchain
if: steps.cache-toolchain.outputs.cache-hit != 'true'
run: |
wget http://file-oss.mounriver.com/tools/${{ env.MRS_TOOLCHAIN }}.tar.xz
tar -xvf ${{ env.MRS_TOOLCHAIN }}.tar.xz
- name: Build firmware
run: |
export PREFIX=${{ env.MRS_TOOLCHAIN }}/RISC-V_Embedded_GCC/bin/riscv-none-embed-
make -j$(nproc)
- uses: actions/upload-artifact@v4
with:
name: badgemagic-firmware
path: build/badgemagic-*