Skip to content

Commit

Permalink
add support for building mellanox
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh352 committed Jan 16, 2025
1 parent 6874851 commit f3ae2f3
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/buildsonic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,36 @@ 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"
path: 'target/sonic-broadcom.bin'
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/')
with:
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

0 comments on commit f3ae2f3

Please sign in to comment.