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]: Set up CI with Azure Pipelines (sonic-net#181)
Signed-off-by: Guohan Lu <lguohan@gmail.com>
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 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,2 @@ | ||
**/* | ||
!*.deb |
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,28 @@ | ||
# C/C++ with GCC | ||
# Build your C/C++ project with GCC using make. | ||
# Add steps that publish test results, save build artifacts, deploy, and more: | ||
# https://docs.microsoft.com/azure/devops/pipelines/apps/c-cpp/gcc | ||
|
||
trigger: | ||
branches: | ||
include: | ||
- "*" | ||
jobs: | ||
- job: | ||
timeoutInMinutes: 180 | ||
pool: sonic | ||
|
||
container: | ||
image: sonicdev-microsoft.azurecr.io:443/sonic-slave-buster:latest | ||
|
||
steps: | ||
- script: | | ||
git config --global user.email "lguohan@build.com" | ||
git config --global user.name "Guohan Lu" | ||
export kernel_procure_method=build | ||
cat /proc/cpuinfo | ||
make | ||
displayName: "Compile sonic kernel" | ||
- publish: $(System.DefaultWorkingDirectory)/ | ||
artifact: sonic-linux-kernel | ||
displayName: "Archive sonic kernel debian packages" |