Skip to content

[PCB] Replace manual mounting holes with 6mm footprint #136

[PCB] Replace manual mounting holes with 6mm footprint

[PCB] Replace manual mounting holes with 6mm footprint #136

Workflow file for this run

on: [push, pull_request]
name: Continuous Integration
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
fw-ci:
name: Build Firmware
runs-on: ubuntu-24.04
defaults:
run:
working-directory: ./fw
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install avr-gcc
run: |
curl -L -o /tmp/avr-gcc-14.1.0-x64-linux.tar.bz2 https://github.com/ZakKemble/avr-gcc-build/releases/download/v14.1.0-1/avr-gcc-14.1.0-x64-linux.tar.bz2
echo Extracting avr-gcc archive
tar xf /tmp/avr-gcc-14.1.0-x64-linux.tar.bz2 --directory /opt
echo "PATH=/opt/avr-gcc-14.1.0-x64-linux/bin:$(echo $PATH)" >> $GITHUB_ENV
- name: make
run: |
make
- uses: actions/upload-artifact@v4
with:
name: beef-fw
path: fw/beef.hex
if-no-files-found: error
beef-tool:
name: Build beef-tool
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
pip install pyinstaller
- name: Package beef-tool
run: |
pyinstaller --onefile --noconsole --add-data "beef-tool/avrdude;avrdude" beef-tool/beef-tool.py
- name: Prepare files for upload
run: |
mkdir tmp
cp dist/beef-tool.exe tmp
cp beef-tool/README.md tmp
cp -r beef-tool/drivers tmp
- name: Upload executable
uses: actions/upload-artifact@v4
with:
name: beef-tool
path: |
tmp/*