diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..1866c2e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,48 @@ +name: ESP Code Build + +on: + push: + branches: + - master + +jobs: + test_builds: + + runs-on: ubuntu-latest + + strategy: + matrix: + test-platform: + - esp32dev + env: + name: esp32-sigrok.bin + + steps: + - name: Select Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: '3.7' + architecture: 'x64' + + - name: Install PlatformIO + run: | + pip install -U https://github.com/platformio/platformio-core/archive/master.zip + platformio update + + - name: Check out the Release + uses: actions/checkout@v2 + + - name: Run PlatformIO for ${{ matrix.test-platform }} + run: platformio run -e ${{ matrix.test-platform }} + + - uses: actions/upload-artifact@v2 + with: + name: ${{ env.name }} + path: .pio/build/esp32dev/firmware.bin + + + + + + + diff --git a/README.md b/README.md index 0cb6251..036d930 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +![ESP Code Build](https://github.com/saikek/esp32_sigrok/workflows/ESP%20Code%20Build/badge.svg) + # Sigrok esp 32 A SUMP compatible logic analyser for the esp32, for use with i.e sigrok