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..334c292 --- /dev/null +++ b/.github/workflows/firmware.yml @@ -0,0 +1,40 @@ +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: ${{ github.sha }} + run: | + git clone https://github.com/openipc/firmware --depth=1 + cd firmware + echo make BOARD=${{matrix.platform}}_${{matrix.release}} MSPOSD_VERSION=${MSPOSD_VERSION} br-msposd + make BOARD=${{matrix.platform}}_${{matrix.release}} MSPOSD_VERSION=${MSPOSD_VERSION} br-msposd \ No newline at end of file