diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..90dab58 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: build + +on: + pull_request: + branches: + - 'main' + push: + branches: + - 'main' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v3 + with: + submodules: 'recursive' + + - name: Create gitignored loginData file + run: | + cd main + touch loginData.hpp + echo '#define WifiSsid "ssid"' >> loginData.hpp + echo '#define WifiPassword "password"' >> loginData.hpp + cat loginData.hpp + shell: bash + + - name: esp-idf build + uses: espressif/esp-idf-ci-action@v1 + with: + esp_idf_version: release-v4.4 + target: esp32 diff --git a/README.md b/README.md index 55cb421..73705d9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # esp-dfi-ignah +[![Build status](https://github.com/MG-5/esp-dfi-ignah/actions/workflows/build.yml/badge.svg)](https://github.com/MG-5/esp-dfi-ignah/actions/workflows/build.yml) + Firmware for ESP to control a older dynamic passenger information using by IGNah Magdeburg