forked from microsoft/WSL2-Linux-Kernel
-
Notifications
You must be signed in to change notification settings - Fork 43
/
azure-pipelines.yml
38 lines (37 loc) · 1.16 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
trigger:
- wsl-xyb-port-5.11.y
jobs:
- job: Build
pool:
vmImage: ubuntu-20.04
steps:
- checkout: self
persistCredentials: true
- script: |
set -e
sudo apt update
sudo apt install -y g++ make flex bison libssl-dev libelf-dev bc
make -j`nproc` KCONFIG_CONFIG=Microsoft/config-wsl
cp arch/x86_64/boot/bzImage $(Build.ArtifactStagingDirectory)/kernel
- task: GitHubRelease@0
displayName: Delete old release
inputs:
gitHubConnection: xyb
repositoryName: xieyubo/WSL2-Linux-Kernel
action: delete
tag: wsl-xyb-port-5.11.y-latest
continueOnError: true
- script: |
git push origin :refs/tags/wsl-xyb-port-5.11.y-latest
- task: GitHubRelease@0
displayName: Create new release
inputs:
gitHubConnection: xyb
repositoryName: xieyubo/WSL2-Linux-Kernel
action: create
target: $(Build.SourceVersion)
tagSource: manual
tag: wsl-xyb-port-5.11.y-latest
assetUploadMode: delete
isPreRelease: true
addChangeLog: false