From 2203448696d17bdd9e7b8dc2a9627f803b9008b2 Mon Sep 17 00:00:00 2001 From: Henk Wiedig Date: Tue, 12 Nov 2024 00:50:13 +0100 Subject: [PATCH 1/2] testbuild br-msposd --- .github/workflows/build.yml | 13 ++++++------ .github/workflows/firmware.yml | 39 ++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/firmware.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 819b2bc..548f6b1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,13 +30,12 @@ jobs: - name: Upload binary uses: actions/upload-artifact@v4 with: - name: build-results path: | - msposd_goke - msposd_hisi - msposd_star6b0 - msposd_star6e - msposd_x86 + msposd_goke + msposd_hisi + msposd_star6b0 + msposd_star6e + msposd_x86 - name: Versioned release if: startsWith(github.ref, 'refs/tags/') @@ -50,7 +49,7 @@ jobs: msposd_x86 - name: Upload latest - if: github.event_name != 'pull_request' && startsWith(github.ref, 'main') + if: github.ref == 'refs/heads/main' && github.event_name == 'push' uses: softprops/action-gh-release@v2 with: tag_name: latest diff --git a/.github/workflows/firmware.yml b/.github/workflows/firmware.yml new file mode 100644 index 0000000..bc6540f --- /dev/null +++ b/.github/workflows/firmware.yml @@ -0,0 +1,39 @@ +name: Testbuild of OpenIPC + +on: + pull_request: + branches: + - main + +jobs: + buildroot: + if: github.repository == 'openipc/msposd' + name: Firmware + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + # Sigmastar [I6E] + - {"platform": "ssc30kq", "release": "fpv"} + - {"platform": "ssc338q", "release": "fpv"} + + # Hisilicon [HI3516EV200] + - {"platform": "hi3516ev200", "release": "fpv"} + - {"platform": "hi3516ev300", "release": "fpv"} + + # Hisilicon [HI3536DV100] + - {"platform": "hi3536dv100", "release": "fpv"} + + # Goke [GK7205V200] + - {"platform": "gk7205v200", "release": "fpv"} + - {"platform": "gk7205v210", "release": "fpv"} + - {"platform": "gk7205v300", "release": "fpv"} + steps: + - name: Build OpenIPC + env: + MSPOSD_VERSION: ${{ env.COMMIT_SHA }} + run: | + git clone https://github.com/openipc/firmware --depth=1 + cd firmware + make BOARD=${{matrix.platform}}_${{matrix.release}} MSPOSD_VERSION=${MSPOSD_VERSION} br-msposd \ No newline at end of file From d74224a31d78c34e08f3b198dc8c00ba5e70ae66 Mon Sep 17 00:00:00 2001 From: Henk Wiedig Date: Thu, 14 Nov 2024 23:12:22 +0100 Subject: [PATCH 2/2] use github.sha --- .github/workflows/firmware.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/firmware.yml b/.github/workflows/firmware.yml index bc6540f..82dc338 100644 --- a/.github/workflows/firmware.yml +++ b/.github/workflows/firmware.yml @@ -32,7 +32,7 @@ jobs: steps: - name: Build OpenIPC env: - MSPOSD_VERSION: ${{ env.COMMIT_SHA }} + MSPOSD_VERSION: ${{ github.sha }} run: | git clone https://github.com/openipc/firmware --depth=1 cd firmware