diff --git a/.github/workflows/buildsonic.yaml b/.github/workflows/buildsonic.yaml index e360c3a97646..6a92282afc20 100644 --- a/.github/workflows/buildsonic.yaml +++ b/.github/workflows/buildsonic.yaml @@ -50,7 +50,13 @@ jobs: - name: Make target/sonic-broadcom.bin run: | make SONIC_BUILD_JOBS=8 target/sonic-broadcom.bin - - name: Upload artifact + - name: Configure Mellanox + run: | + make configure PLATFORM=mellanox SONIC_VERSION_CONTROL_COMPONENTS=none + - name: Make target/sonic-mellanox.bin + run: | + make SONIC_BUILD_JOBS=8 target/sonic-mellanox.bin + - name: Upload Broadcom artifact uses: actions/upload-artifact@v4 with: name: "sonic-broadcom.bin" @@ -58,6 +64,14 @@ jobs: if-no-files-found: error overwrite: true retention-days: 30 + - name: Upload Mellanox artifact + uses: actions/upload-artifact@v4 + with: + name: "sonic-mellanox.bin" + path: 'target/sonic-mellanox.bin' + if-no-files-found: error + overwrite: true + retention-days: 30 - name: Upload Release uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/') @@ -65,5 +79,7 @@ jobs: draft: false make_latest: true generate_release_notes: true - files: target/sonic-broadcom.bin + files: | + target/sonic-broadcom.bin + target/sonic-mellanox.bin fail_on_unmatched_files: true