Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci edk2platform #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 44 additions & 10 deletions .azurepipelines/Windows-VS2019.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,54 @@
## @file
# Azure Pipeline build file for a build using Windows and VS2019
# CI for Edk2platforms
#
# Copyright (c) Microsoft Corporation.
# Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
trigger:
- master
- stable/*

pr:
- master
- stable/*

resources:
repositories:
- repository: edk2-platforms
type: github
endpoint: tianocore
name: td36/edk2-platforms
- repository: edk2-non-osi
type: github
endpoint: tianocore
name: tianocore/edk2-non-osi
- repository: FSP
type: github
endpoint: tianocore
name: intel/FSP

jobs:
- template: templates/pr-gate-build-job.yml
parameters:
tool_chain_tag: 'VS2019'
vm_image: 'windows-latest'
arch_list: "IA32,X64"
- job: Edk2Platform_CI_Windows
pool:
vmImage: 'windows-latest'
strategy:
matrix:
WHISKEYLAKEOPENBOARD_WHISKEYLAKEURVP:
Board.Name: "WhiskeylakeURvp"
WHISKEYLAKEOPENBOARD_UPXTREME:
Board.Name: "UpXtreme"
steps:
- template: edk2platforms-run-steps.yml
parameters:
board_name: $(Board.Name)
pool_name: 'windows-latest'

- job: Edk2Platform_CI_Linux
pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
WHISKEYLAKEOPENBOARD_WHISKEYLAKEURVP:
Board.Name: "WhiskeylakeURvp"
steps:
- template: edk2platforms-run-steps.yml
parameters:
board_name: $(Board.Name)
pool_name: 'ubuntu-latest'
54 changes: 54 additions & 0 deletions .azurepipelines/edk2-platforms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
## @file
# CI for Edk2platforms
#
# Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
trigger:
- master
pr:
- master

resources:
repositories:
- repository: edk2-platforms
type: github
endpoint: td36
name: td36/edk2-platforms
- repository: edk2-non-osi
type: github
endpoint: td36
name: tianocore/edk2-non-osi
- repository: FSP
type: github
endpoint: td36
name: intel/FSP

jobs:
- job: Edk2Platform_CI_Windows
pool:
vmImage: 'windows-latest'
strategy:
matrix:
WHISKEYLAKEOPENBOARD_WHISKEYLAKEURVP:
Board.Name: "WhiskeylakeURvp"
WHISKEYLAKEOPENBOARD_UPXTREME:
Board.Name: "UpXtreme"
steps:
- template: edk2platforms-run-steps.yml
parameters:
board_name: $(Board.Name)
pool_name: 'windows-latest'

- job: Edk2Platform_CI_Linux
pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
WHISKEYLAKEOPENBOARD_WHISKEYLAKEURVP:
Board.Name: "WhiskeylakeURvp"
steps:
- template: edk2platforms-run-steps.yml
parameters:
board_name: $(Board.Name)
pool_name: 'ubuntu-latest'
221 changes: 221 additions & 0 deletions .azurepipelines/edk2-platforms_backup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
## @file
# Core CI configuration for UefiPayloadPkg
#
# Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
trigger:
- master
pr:
- master

resources:
repositories:
- repository: coreboot
type: github
endpoint: https://github.com/td36/coreboot
name: coreboot
- repository: edk2-platforms
type: github
endpoint: https://github.com/tianocore/edk2-platforms.git
name: edk2-platforms
- repository: edk2-non-osi
type: github
endpoint: https://github.com/tianocore/edk2-non-osi.git
name: edk2-non-osi
- repository: FSP
type: github
endpoint: https://github.com/IntelFsp/FSP.git
name: FSP

jobs:
- job: Edk2Platform_CI
parameters:
- name: extra_repo_clone_step
type: stepList
default:
- script: git clone https://github.com/tianocore/edk2-non-osi.git
displayName: Download edk2-non-osi repo
- script: git clone https://github.com/IntelFsp/FSP.git
displayName: Download FSP repo
- script: git clone https://github.com/tianocore/edk2-platforms.git
displayName: Download edk2-platforms repo

pool:
vmImage: 'windows-latest'

steps:
- checkout: self
- checkout: https://github.com/tianocore/edk2-non-osi.git
- checkout: https://github.com/IntelFsp/FSP.git
- checkout: https://github.com/tianocore/edk2-platforms.git

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "3.8.x"
architecture: "x64"
choco install iasl -y --version=2017.11.10
echo "##vso[task.setvariable variable=IASL_PREFIX;]C:\tools\ASL\"

- ${{ parameters.extra_repo_clone_step }}

steps:
- script: python build_bios.py --platform WhiskeylakeURvp
displayName: Build platform WhiskeylakeURvp
workingDirectory: edk2-platforms\Platform\Intel

resources:
repositories:
- repository: edk2-platforms
type: github
endpoint: td36
name: tianocore/edk2-platforms
- repository: edk2-non-osi
type: github
endpoint: td36
name: tianocore/edk2-non-osi
- repository: FSP
type: github
endpoint: td36
name: intel/FSP

jobs:
- job: Edk2Platform_CI
pool:
vmImage: 'windows-latest'

steps:
- checkout: self
submodules: true
- checkout: edk2-non-osi
- checkout: FSP
- checkout: edk2-platforms

- task: UsePythonVersion@0
inputs:
versionSpec: "3.8.x"
architecture: "x64"

- powershell: |
choco install iasl -y --version=2017.11.10
echo "##vso[task.setvariable variable=IASL_PREFIX;]C:\tools\ASL\"
choco install nasm -y
echo "##vso[task.setvariable variable=NASM_PREFIX;]C:\Program Files\NASM\"
displayName: Windows EDK II Prerequisites

- script: python build_bios.py --platform WhiskeylakeURvp
displayName: Build platform WhiskeylakeURvp
workingDirectory: edk2-platforms\Platform\Intel


###

## @file
# Core CI configuration for UefiPayloadPkg
#
# Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
trigger:
- master
pr:
- master

resources:
repositories:
- repository: edk2-platforms
type: github
endpoint: td36
name: tianocore/edk2-platforms
- repository: edk2-non-osi
type: github
endpoint: td36
name: tianocore/edk2-non-osi
- repository: FSP
type: github
endpoint: td36
name: intel/FSP

jobs:
- job: Edk2Platform_CI
pool:
vmImage: 'windows-latest'

strategy:
matrix:
WHISKEYLAKEOPENBOARD_WHISKEYLAKEURVP:
Board.Name: "WhiskeylakeURvp"
WHISKEYLAKEOPENBOARD_UPXTREME:
Board.Name: "UpXtreme"

steps:
- template: edk2platforms-run-steps.yml
parameters:
board_name: $(Board.Name)




parameters:
- name: board_name
type: string
default: ''

steps:
- checkout: self
submodules: true
- checkout: edk2-non-osi
- checkout: FSP
- checkout: edk2-platforms

- task: UsePythonVersion@0
inputs:
versionSpec: "3.8.x"
architecture: "x64"

- powershell: |
choco install iasl -y --version=2017.11.10
echo "##vso[task.setvariable variable=IASL_PREFIX;]C:\tools\ASL\"
choco install nasm -y
echo "##vso[task.setvariable variable=NASM_PREFIX;]C:\Program Files\NASM\"
displayName: Windows EDK II Prerequisites

- script: python build_bios.py --platform ${{ parameters.board_name}}
displayName: Build platform ${{ parameters.board_name}}
workingDirectory: edk2-platforms\Platform\Intel
###


- bash : |
. edksetup.sh
echo $PATH
displayName: Set Path of build
workingDirectory: edk2/


###
- ${{ if contains(parameters.pool_name, 'ubuntu') }}:
- bash: |
sudo apt-get update
sudo apt-get install gcc g++ make uuid-dev nasm
sudo apt-get install -y iasl
displayName: Update apt and Install required tools
- script: |
source edksetup.sh
cd ../edk2-platforms/Platform/Intel
echo this is $PATH
python build_bios.py --platform ${{ parameters.board_name}}
displayName: Build platform ${{ parameters.board_name}}
workingDirectory: edk2/

- ${{ if contains(parameters.pool_name, 'windows') }}:
- powershell: |
choco install iasl -y --version=2017.11.10
echo "##vso[task.setvariable variable=IASL_PREFIX;]C:\tools\ASL\"
choco install nasm -y
echo "##vso[task.setvariable variable=NASM_PREFIX;]C:\Program Files\NASM\"
displayName: Windows EDK II Prerequisites
- script: python build_bios.py --platform ${{ parameters.board_name}}
displayName: Build platform ${{ parameters.board_name}}
workingDirectory: edk2-platforms/Platform/Intel
43 changes: 43 additions & 0 deletions .azurepipelines/edk2platforms-run-steps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

parameters:
- name: board_name
type: string
default: ''
- name: pool_name
type: string
default: ''

steps:
- checkout: self
submodules: true
- checkout: edk2-non-osi
- checkout: FSP
- checkout: edk2-platforms

- task: UsePythonVersion@0
inputs:
versionSpec: "3.8.x"
architecture: "x64"

- ${{ if contains(parameters.pool_name, 'ubuntu') }}:
- bash: |
sudo apt-get update
sudo apt-get install gcc g++ make uuid-dev nasm iasl
displayName: Update apt and Install required tools
- script: |
source edksetup.sh
echo "##vso[task.setvariable variable=PATH;]$PATH"
displayName: Set env Path
workingDirectory: edk2/

- ${{ if contains(parameters.pool_name, 'windows') }}:
- powershell: |
choco install iasl -y --version=2017.11.10
echo "##vso[task.setvariable variable=IASL_PREFIX;]C:\tools\ASL\"
choco install nasm -y
echo "##vso[task.setvariable variable=NASM_PREFIX;]C:\Program Files\NASM\"
displayName: Windows EDK II Prerequisites

- script: python build_bios.py --platform ${{ parameters.board_name}}
displayName: Build platform ${{ parameters.board_name}}
workingDirectory: edk2-platforms/Platform/Intel