From dc442d772685a87c4590a471480f248ab4aeb059 Mon Sep 17 00:00:00 2001 From: Tom McAdam Date: Sun, 14 Apr 2024 23:35:47 +0900 Subject: [PATCH 1/9] First attempt at gh actions for pio --- .github/workflows/esp-build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/esp-build.yml diff --git a/.github/workflows/esp-build.yml b/.github/workflows/esp-build.yml new file mode 100644 index 00000000..5343c9cf --- /dev/null +++ b/.github/workflows/esp-build.yml @@ -0,0 +1,24 @@ +name: PlatformIO CI + +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.11' + - name: Install PlatformIO Core + run: pip install --upgrade platformio + + - name: Build PlatformIO Project + run: pio run \ No newline at end of file From ae99262b1aae4631bfc7203fd41b5677a0388c5a Mon Sep 17 00:00:00 2001 From: Tom McAdam Date: Sun, 14 Apr 2024 23:38:57 +0900 Subject: [PATCH 2/9] Add mlrs deps --- .github/workflows/esp-build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/esp-build.yml b/.github/workflows/esp-build.yml index 5343c9cf..ceed80ad 100644 --- a/.github/workflows/esp-build.yml +++ b/.github/workflows/esp-build.yml @@ -19,6 +19,7 @@ jobs: python-version: '3.11' - name: Install PlatformIO Core run: pip install --upgrade platformio - + - name: Install mLRS Dependencies + run: python3 run_setup.py - name: Build PlatformIO Project run: pio run \ No newline at end of file From af4115549db7728c157c87ff2dc3b99b62d01f2b Mon Sep 17 00:00:00 2001 From: Tom McAdam Date: Sun, 14 Apr 2024 23:46:41 +0900 Subject: [PATCH 3/9] Update action versions --- .github/workflows/esp-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/esp-build.yml b/.github/workflows/esp-build.yml index ceed80ad..025ab02d 100644 --- a/.github/workflows/esp-build.yml +++ b/.github/workflows/esp-build.yml @@ -7,8 +7,8 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/cache@v3 + - uses: actions/checkout@v4 + - uses: actions/cache@v4 with: path: | ~/.cache/pip From d965b86c51795abb4da1ab2e6c60efdde361175f Mon Sep 17 00:00:00 2001 From: Tom McAdam Date: Sun, 14 Apr 2024 23:48:15 +0900 Subject: [PATCH 4/9] Renamed job --- .github/workflows/esp-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/esp-build.yml b/.github/workflows/esp-build.yml index 025ab02d..72cf161b 100644 --- a/.github/workflows/esp-build.yml +++ b/.github/workflows/esp-build.yml @@ -3,7 +3,7 @@ name: PlatformIO CI on: [push] jobs: - build: + build-esp-targets: runs-on: ubuntu-latest steps: From 70369c728f9705822625f72e6199e8560dec505c Mon Sep 17 00:00:00 2001 From: Tom McAdam Date: Sun, 14 Apr 2024 23:50:37 +0900 Subject: [PATCH 5/9] Update action versions --- .github/workflows/esp-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/esp-build.yml b/.github/workflows/esp-build.yml index 72cf161b..0a2660be 100644 --- a/.github/workflows/esp-build.yml +++ b/.github/workflows/esp-build.yml @@ -14,7 +14,7 @@ jobs: ~/.cache/pip ~/.platformio/.cache key: ${{ runner.os }}-pio - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: '3.11' - name: Install PlatformIO Core From 4be78fb6e141922d715fe3092fee286a53785401 Mon Sep 17 00:00:00 2001 From: Tom McAdam Date: Sun, 14 Apr 2024 23:54:00 +0900 Subject: [PATCH 6/9] Renamed action yml --- .github/workflows/{esp-build.yml => build-targets.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{esp-build.yml => build-targets.yml} (100%) diff --git a/.github/workflows/esp-build.yml b/.github/workflows/build-targets.yml similarity index 100% rename from .github/workflows/esp-build.yml rename to .github/workflows/build-targets.yml From 4b7266d3ce93353eee4670eaa815144d80dfb314 Mon Sep 17 00:00:00 2001 From: Tom McAdam Date: Mon, 15 Apr 2024 00:00:00 +0900 Subject: [PATCH 7/9] Added branch filters --- .github/workflows/build-targets.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-targets.yml b/.github/workflows/build-targets.yml index 0a2660be..a1cf3860 100644 --- a/.github/workflows/build-targets.yml +++ b/.github/workflows/build-targets.yml @@ -1,6 +1,11 @@ name: PlatformIO CI -on: [push] +on: + push: + branches: + - main + - 'dev-esp**' + - github-actions jobs: build-esp-targets: From 5ba28428e45b8c0a62ea48f8e67ead11cd89841c Mon Sep 17 00:00:00 2001 From: Tom McAdam Date: Mon, 15 Apr 2024 00:02:06 +0900 Subject: [PATCH 8/9] Removed test filter --- .github/workflows/build-targets.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build-targets.yml b/.github/workflows/build-targets.yml index a1cf3860..c73c5c82 100644 --- a/.github/workflows/build-targets.yml +++ b/.github/workflows/build-targets.yml @@ -5,7 +5,6 @@ on: branches: - main - 'dev-esp**' - - github-actions jobs: build-esp-targets: From e1e4cadaf65d74898f81df35d40a25b65a44a958 Mon Sep 17 00:00:00 2001 From: Tom McAdam Date: Mon, 15 Apr 2024 00:03:11 +0900 Subject: [PATCH 9/9] Updated name --- .github/workflows/build-targets.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-targets.yml b/.github/workflows/build-targets.yml index c73c5c82..1dbef5cd 100644 --- a/.github/workflows/build-targets.yml +++ b/.github/workflows/build-targets.yml @@ -1,4 +1,4 @@ -name: PlatformIO CI +name: mLRS Build Checks on: push: