forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci]: build amd64/armhf/arm64 for CI build (sonic-net#196)
Signed-off-by: Guohan Lu <lguohan@gmail.com>
- Loading branch information
Showing
2 changed files
with
73 additions
and
17 deletions.
There are no files selected for viewing
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,48 @@ | ||
parameters: | ||
- name: arch | ||
type: string | ||
values: | ||
- amd64 | ||
- armhf | ||
- arm64 | ||
|
||
- name: pool | ||
type: string | ||
values: | ||
- sonicbld | ||
- sonicbld_8c | ||
default: sonicbld | ||
|
||
- name: timeout | ||
type: number | ||
default: 600 | ||
|
||
- name: sonic_slave | ||
type: string | ||
|
||
- name: artifact_name | ||
type: string | ||
|
||
jobs: | ||
- job: | ||
pool: ${{ parameters.pool }} | ||
displayName: ${{ parameters.arch }} | ||
timeoutInMinutes: ${{ parameters.timeout }} | ||
|
||
container: | ||
image: sonicdev-microsoft.azurecr.io:443/${{ parameters.sonic_slave }}:latest | ||
|
||
steps: | ||
- checkout: self | ||
clean: true | ||
displayName: 'Checkout code' | ||
- script: | | ||
git config --global user.email "lguohan@build.com" | ||
git config --global user.name "Guohan Lu" | ||
export kernel_procure_method=build | ||
cat /proc/cpuinfo | ||
CONFIGURED_ARCH=${{ parameters.arch }} make | ||
displayName: "Compile sonic kernel" | ||
- publish: $(System.DefaultWorkingDirectory)/ | ||
artifact: ${{ parameters.artifact_name }} | ||
displayName: "Archive sonic kernel debian packages" |
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