Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.3 KiB

  1. # Check the build status for the nighly builder, release or pull request
  2. name: ESPurna build
  3. on: [push, pull_request]
  4. jobs:
  5. build:
  6. runs-on: ubuntu-latest
  7. steps:
  8. - uses: actions/checkout@v2
  9. - uses: actions/setup-python@v2
  10. with:
  11. python-version: '3.x'
  12. architecture: x64
  13. - uses: actions/setup-node@v2
  14. with:
  15. node-version: '14'
  16. - name: Cache Node
  17. uses: actions/cache@v2
  18. with:
  19. path: ~/.npm
  20. key: ${{ runner.os }}-${{ hashFiles('code/package-lock.json', 'code/package.json') }}
  21. - name: Cache PlatformIO
  22. uses: actions/cache@v2
  23. with:
  24. path: ~/.platformio
  25. key: ${{ runner.os }}-${{ hashFiles('code/platformio.ini') }}
  26. - name: Host tests
  27. run: |
  28. ./ci_install.sh host
  29. ./ci_script.sh host
  30. - name: WebUI tests
  31. run: |
  32. ./ci_install.sh webui
  33. ./ci_script.sh webui
  34. - name: PlatformIO build
  35. env:
  36. BUILDER_TOTAL_THREADS: 4
  37. ESPURNA_PIO_PATCH_ISSUE_1610: "y"
  38. ESPURNA_PIO_SHARED_LIBRARIES: "y"
  39. TEST_ENV: "esp8266-4m-latest-base"
  40. TEST_EXTRA_ARGS: "-a test/build/extra/secure_client.h"
  41. run: |
  42. git config --global advice.detachedHead false
  43. ./ci_install.sh build
  44. ./ci_script.sh build