Skip to content

Commit

Permalink
[ci]: Set up CI with Azure Pipelines (sonic-net#181)
Browse files Browse the repository at this point in the history
Signed-off-by: Guohan Lu <lguohan@gmail.com>
  • Loading branch information
lguohan authored Dec 29, 2020
1 parent 6f53047 commit a7c1af7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .artifactignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/*
!*.deb
28 changes: 28 additions & 0 deletions azure-pipelines.yml
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"

0 comments on commit a7c1af7

Please sign in to comment.