forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add build target platform vs and ot-vs
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: ot-pre-202411-vs-build | ||
|
||
on: | ||
push: | ||
branches: [ "otn_pre_202411" ] | ||
pull_request: | ||
branches: [ "otn_pre_202411" ] | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: sonic-otn-server | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: 202411_${{github.run_number}} | ||
|
||
- name: build | ||
run: | | ||
cd 202411_${{github.run_number}} | ||
make init | ||
make configure PLATFORM=vs | ||
make SONIC_BUILD_JOBS=8 target/sonic-vs.img.gz | ||
- name: 'Upload Artifact' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: otn-202411-artifact | ||
path: | | ||
202411_${{github.run_number}}/sonic-installer.img | ||
202411_${{github.run_number}}/target/*.img.gz |