✨ add menu entry for permanent lighting #69
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
name: CI | |
on: | |
push: | |
paths-ignore: | |
- "*.md" | |
- "*.txt" | |
- "*.drawio" | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build_mega: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/[email protected] | |
- name: Install PlatformIO Core | |
run: | | |
pip3 install -U platformio | |
sudo ln -s ~/.platformio/penv/bin/platformio /usr/local/bin/platformio | |
sudo ln -s ~/.platformio/penv/bin/pio /usr/local/bin/pio | |
sudo ln -s ~/.platformio/penv/bin/piodebuggdb /usr/local/bin/piodebuggdb | |
- name: Compile project | |
run: pio run -v -e megaatmega2560 | |
build_uno: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/[email protected] | |
- name: Install PlatformIO Core | |
run: | | |
pip3 install -U platformio | |
sudo ln -s ~/.platformio/penv/bin/platformio /usr/local/bin/platformio | |
sudo ln -s ~/.platformio/penv/bin/pio /usr/local/bin/pio | |
sudo ln -s ~/.platformio/penv/bin/piodebuggdb /usr/local/bin/piodebuggdb | |
- name: Compile project | |
run: pio run -v -e uno | |
check_code: | |
needs: [build_mega] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/[email protected] | |
- name: Install PlatformIO Core | |
run: | | |
pip3 install -U platformio | |
sudo ln -s ~/.platformio/penv/bin/platformio /usr/local/bin/platformio | |
sudo ln -s ~/.platformio/penv/bin/pio /usr/local/bin/pio | |
sudo ln -s ~/.platformio/penv/bin/piodebuggdb /usr/local/bin/piodebuggdb | |
- name: Check project | |
run: pio check -e megaatmega2560 --skip-packages | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/[email protected] | |
- name: Install gcc | |
run: sudo apt-get install build-essential -y | |
- name: Install PlatformIO Core | |
run: | | |
pip3 install -U platformio | |
sudo ln -s ~/.platformio/penv/bin/platformio /usr/local/bin/platformio | |
sudo ln -s ~/.platformio/penv/bin/pio /usr/local/bin/pio | |
sudo ln -s ~/.platformio/penv/bin/piodebuggdb /usr/local/bin/piodebuggdb | |
- name: Install native platform | |
run: pio platform install native | |
- name: Install dependencies | |
run: pio lib -e native install | |
- name: Test project | |
run: pio test -v -e native |