Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build workflow #55

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: CI

on:
pull_request:
branches:
- master
paths-ignore:
- hardware/**
push:
branches:
- master
paths-ignore:
- hardware/**

jobs:
build:
name: Run Tests
# runs-on: "${{ matrix.os }}"
runs-on: "ubuntu-latest"
strategy:
fail-fast: true
# matrix:
# os: ["ubuntu-latest", "windows-latest", "macos-latest"]
# python-version: ["3.7", "3.8", "3.9"]

steps:

- name: Check out the commit
uses: actions/checkout@v3
with:
submodules: 'true'

- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Cache PlatformIO
uses: actions/cache@v3
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}

- name: Select Python 3.7
uses: actions/setup-python@v3
with:
# python-version: ${{ matrix.python-version }}
python-version: "3.8"

- name: Install PlatformIO
run: |
pip install -U -r tools/requirements.txt
pio upgrade --dev
pio pkg update --global

- name: Run Builds
run: |
python make.py build sam esp -v

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') && job.status == 'success' && github.ref == 'refs/heads/master'
with:
files: |
bin/*




Loading