forked from 5-Super-Rookie-5/MU-sm8150pkg
-
Notifications
You must be signed in to change notification settings - Fork 6
/
azure-pipelines.yml
executable file
·88 lines (69 loc) · 2.61 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# 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'
- task: UsePythonVersion@0
inputs:
versionSpec: '3.10'
architecture: 'x64'
displayName: Install correct Python
# Travis have this by default, because we preinstalled build-essentials
- script: sudo apt install uuid-dev
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_epsilon.sh && ./build_uefi_epsilon.sh
displayName: 'UEFI build (Epsilon)'
- script: chmod +x ./build_uefi_zeta.sh && ./build_uefi_zeta.sh
displayName: 'UEFI build (Zeta)'
- script: chmod +x ./build_boot_shim.sh && ./build_boot_shim.sh
displayName: 'BootShim build'
- script: chmod +x ./build_boot_images.sh && ./build_boot_images.sh
displayName: 'UEFI boot image build'
# Publish UEFI (1 target)
- task: PublishBuildArtifacts@1
displayName: 'Publish SM8150 UEFI build (Surface Duo 1)'
inputs:
pathtoPublish: ./ImageResources/Epsilon/uefi.img
artifactName: SM8150 UEFI (Surface Duo 1)
# Publish Boot (1 target)
- task: PublishBuildArtifacts@1
displayName: 'Publish SM8150 Boot build (Surface Duo 1)'
inputs:
pathtoPublish: ./ImageResources/Epsilon/boot.img
artifactName: SM8150 Boot (Surface Duo 1)
# Publish UEFI (1 target)
- task: PublishBuildArtifacts@1
displayName: 'Publish SM8350 UEFI build (Surface Duo 2)'
inputs:
pathtoPublish: ./ImageResources/Zeta/uefi.img
artifactName: SM8350 UEFI (Surface Duo 2)
# Publish Boot (1 target)
- task: PublishBuildArtifacts@1
displayName: 'Publish SM8350 Boot build (Surface Duo 2)'
inputs:
pathtoPublish: ./ImageResources/Zeta/boot.img
artifactName: SM8350 Boot (Surface Duo 2)