Files
espurna/.github/workflows/push.yml
Maxim Prokhorov bacff3102d pio: make sure "y" for shared libs still works
And update other options to support y, yes and true
2021-06-20 17:41:46 +03:00

74 lines
1.9 KiB
YAML

# Check the build status for the nighly builder, release or pull request
name: ESPurna build
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('ci_install.sh') }}
- name: Cache PlatformIO
uses: actions/cache@v2
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('code/platformio.ini') }}
- name: Host tests
run: |
./ci_install.sh host
./ci_script.sh host
webui:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Cache Node
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-${{ hashFiles('code/package-lock.json', 'code/package.json') }}
- name: WebUI tests
run: |
./ci_install.sh webui
./ci_script.sh webui
build:
runs-on: ubuntu-latest
env:
ESPURNA_PIO_SHARED_LIBRARIES: "1"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('ci_install.sh') }}
- name: Cache PlatformIO
uses: actions/cache@v2
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('code/platformio.ini') }}
- name: PlatformIO prepare
run: |
git config --global advice.detachedHead false
./ci_install.sh build
- run: |
./ci_script.sh build esp8266-4m-base
- run: |
./ci_script.sh build esp8266-4m-latest-base