-
Notifications
You must be signed in to change notification settings - Fork 19
/
azure-pipelines.yml
executable file
·62 lines (48 loc) · 1.76 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# SurfaceDuoPkg CI build on VSTS
trigger:
branches:
include:
- main
paths:
exclude:
- README.md
- LICENSE
pool:
vmImage: 'Ubuntu-latest'
steps:
- script: sudo apt update
displayName: 'Update APT sources'
# Travis have this by default, because we preinstalled build-essentials
- script: sudo apt install uuid-dev flex bison
displayName: 'Install VSTS dependencies'
# Fix-up directory link for VSTS, force replace current reference
- script: sudo ln -sfn $(pwd) ../SurfaceDuoPkg
displayName: 'Fix directory links'
# Build iASL tool from repository
# Eventually we will just install prepackaged version
# - script: git clone https://github.com/acpica/acpica acpica-tools
# displayName: 'Checkout ACPICA tools repository'
# - script: cd acpica-tools && make clean && make && sudo make install && cd ..
# displayName: 'Build and install ACPICA tools'
- script: chmod +x ./setup_env.sh && sudo ./setup_env.sh
displayName: 'Prepare pre-build environment, phase 0'
- script: pip install --upgrade -r ./pip-requirements.txt
displayName: 'Prepare pre-build environment, phase 1'
- script: chmod +x ./build_releaseinfo.ps1 && ./build_releaseinfo.ps1
displayName: 'Prepare pre-build environment, phase 2'
- script: chmod +x ./build_uefi.sh && ./build_uefi.sh
displayName: 'UEFI build'
- script: chmod +x ./build.sh && ./build.sh
displayName: 'UEFI boot image build'
# Publish UEFI (1 target)
- task: PublishBuildArtifacts@1
displayName: 'Publish UEFI build (Surface Duo)'
inputs:
pathtoPublish: ./uefi.img
artifactName: SM8150 UEFI (Surface Duo)
# Publish Boot (1 target)
- task: PublishBuildArtifacts@1
displayName: 'Publish Boot build (Surface Duo)'
inputs:
pathtoPublish: ./boot.img
artifactName: SM8150 Boot (Surface Duo)