From bf413e92dcbf0963e0368b2fd0a0bde2a31f4a1f Mon Sep 17 00:00:00 2001 From: Aditya Agarwal Date: Thu, 23 May 2024 16:55:44 +0530 Subject: [PATCH] ci: add workflow to verify if the project builds or not Signed-off-by: Aditya Agarwal --- .github/workflows/build.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..43563db --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,27 @@ +name: PlatformIO Build + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: | + ~/.cache/pip + ~/.platformio/.cache + key: ${{ runner.os }}-pio + - uses: actions/setup-python@v4 + with: + python-version: '3.9' + - name: Install PlatformIO Core + run: pip install --upgrade platformio + + - name: Fetch Library Dependencies + run: pio pkg install + + - name: Build PlatformIO Project + run: pio run