Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nonik0 authored Feb 21, 2024
1 parent 4b4917c commit a1b517f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: PlatformIO CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install PlatformIO Core
run: pip install --upgrade platformio

- name: Build PlatformIO Project
run: pio run

- name: Rename bin file
run: mv .pio/build/m5cardputer/firmware.bin LoRaChat.bin

- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.3.1
with:
name: CardputerLoRaChat
path: LoRaChat.bin
if-no-files-found: error

0 comments on commit a1b517f

Please sign in to comment.