Skip to content

Commit

Permalink
Add CI for firmware builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ASleepyCat committed Aug 4, 2024
1 parent 7bd6c2e commit 55f066a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on: [push, pull_request]
name: Continuous Integration
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install avr-gcc
run: |
curl -L -o /tmp/modm-avr-gcc.tar.bz2 https://github.com/modm-io/avr-gcc/releases/download/v13.2.0/modm-avr-gcc.tar.bz2
echo Extracting avr-gcc archive
tar xf /tmp/modm-avr-gcc.tar.bz2 --directory /opt
echo "PATH=/opt/avr-gcc/bin:$(echo $PATH)" >> $GITHUB_ENV
- name: make
run: |
cd fw
make
- uses: actions/upload-artifact@v4
with:
name: beef-fw
path: fw/beef.hex
if-no-files-found: error

0 comments on commit 55f066a

Please sign in to comment.