From 7697cb4ae99c9d86a49a1c974728e82274aa2acd Mon Sep 17 00:00:00 2001 From: tobimai Date: Mon, 3 Nov 2025 17:25:15 +0100 Subject: [PATCH] Fixed build pipelines --- .gitea/workflows/on_push.yaml | 6 ++++-- .gitea/workflows/test_build.yaml | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 .gitea/workflows/test_build.yaml diff --git a/.gitea/workflows/on_push.yaml b/.gitea/workflows/on_push.yaml index e3f85cd..87d7f2d 100644 --- a/.gitea/workflows/on_push.yaml +++ b/.gitea/workflows/on_push.yaml @@ -1,6 +1,8 @@ -name: Test compiling project +name: Compilie project and upload binaries -on: [push] +on: + push: + branches: ["main"] jobs: test: diff --git a/.gitea/workflows/test_build.yaml b/.gitea/workflows/test_build.yaml new file mode 100644 index 0000000..456923d --- /dev/null +++ b/.gitea/workflows/test_build.yaml @@ -0,0 +1,24 @@ +name: Test project compilation + +on: + push: + branches-ignore: ["main"] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + container: + image: gitea.tobiasmaier.me/tobimai/devcontainer-pio:2.1 + + steps: + - name: Checkout Code + uses: actions/checkout@v2 + - name: Run PlatformIO build for SPIFFS (same in both platforms, so only one build is necessary) + run: which pio && id && pio run --target buildfs -e ESP32_INA233 + - name: Run PlatformIO Tests + run: pio test -e native + - name: Run PlatformIO build for INA233 + run: pio run -e ESP32_INA233 + - name: Run PlatformIO build for INA226 + run: pio run -e ESP32_INA226