actions: Add main-yml action configuration #13
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
on: | |
push: | |
branches: | |
- develop | |
- feature/* | |
workflow_dispatch: | |
jobs: | |
build: | |
name: build | |
runs-on: arm-none-eabi-gcc | |
steps: | |
- name: Setup arm-none-eabi-gcc path | |
run: echo "/opt/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin" >> $GITHUB_PATH | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
all_tags: true | |
- name: Install python venv & dependencies | |
run: | | |
python -m venv venv | |
source venv/bin/activate | |
pip install -r requirements.txt | |
echo PATH=$PATH >> $GITHUB_ENV | |
echo VIRTUAL_ENV=$VIRTUAL_ENV >> $GITHUB_ENV | |
- name: Select the port | |
run: defconfig config/nwdaq_br28_fdc_defconfig | |
- name: Compile | |
run: scons firmware |