Skip to content

chore: add EasyEDA project #14

chore: add EasyEDA project

chore: add EasyEDA project #14

Workflow file for this run

name: Continuous Integration
on:
push:
release:
types:
- "published"
jobs:
ci-linux:
name: CI Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build on Linux
run: |
sudo apt-get install curl python3 python3-venv -y
curl -fsSL -o get-platformio.py https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py
python3 get-platformio.py
mkdir -p $HOME/.local/bin
export PATH=$PATH:$HOME/.local/bin
ln -s ~/.platformio/penv/bin/platformio ~/.local/bin/platformio
ln -s ~/.platformio/penv/bin/pio ~/.local/bin/pio
ln -s ~/.platformio/penv/bin/piodebuggdb ~/.local/bin/piodebuggdb
for i in {1..33}; do
BOARD_ID=$i pio run;
cp .pio/build/ATmega32/firmware.hex hshb-nametag-$i.hex;
done
shell: bash
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: hshb-nametag hex files
path: |
hshb-nametag-*.hex
- name: Upload release
if: ${{ github.event_name == 'release' }}
uses: alexellis/upload-assets@0.4.0
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: '["hshb-nametag-*.hex"]'