From 7837bc1e30aacfaeff43041848af952d46622f05 Mon Sep 17 00:00:00 2001 From: proddy Date: Wed, 6 Nov 2024 11:51:53 +0100 Subject: [PATCH] break build if standalone doesnt compile --- .github/workflows/pr_check.yml | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/pr_check.yml diff --git a/.github/workflows/pr_check.yml b/.github/workflows/pr_check.yml new file mode 100644 index 000000000..003969d14 --- /dev/null +++ b/.github/workflows/pr_check.yml @@ -0,0 +1,37 @@ +name: 'pr_check' + +on: + workflow_dispatch: + pull_request: + branches: dev + paths: + - '**.c' + - '**.cpp' + - '**.h' + - '**.hpp' + - '**.json' + - '**.py' + - '**.md' + - '.github/workflows/pr_check.yml' + +jobs: + pre-release: + name: 'Automatic pre-release build' + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install python 3.11 + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install PlatformIO + run: | + pip install wheel + pip install -U platformio + + - name: Build native + run: | + platformio run -e native