Update README.md #28
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
# see: https://github.com/marketplace/actions/test-compile-for-arduino | |
name: build | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: build for MCU | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install pre-requisites and build | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install gcc-avr binutils-avr avrdude avr-libc | |
cd /home/runner/work/bbn-i2c-over-usb/bbn-i2c-over-usb | |
git submodule update --init --recursive | |
make | |
find . -name \*.hex | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: /home/runner/work/bbn-i2c-over-usb/bbn-i2c-over-usb/I2CUSB.hex | |
tag: ${{ github.ref == 'refs/heads/main' && 'vTest' || github.ref }} | |
overwrite: true | |
file_glob: true | |