Skip to content

build: update to 1ES PT #47

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

Merged
merged 4 commits into from
Jun 25, 2024
Merged
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
87 changes: 0 additions & 87 deletions .github/workflows/ci_ut_ext_base_workflow.yml

This file was deleted.

81 changes: 0 additions & 81 deletions .github/workflows/ci_ut_ext_blob_workflow.yml

This file was deleted.

80 changes: 0 additions & 80 deletions .github/workflows/ci_ut_ext_fastapi_workflow.yml

This file was deleted.

18 changes: 18 additions & 0 deletions eng/ci/code-mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
trigger:
branches:
include:
- dev
- release/*

resources:
repositories:
- repository: eng
type: git
name: engineering
ref: refs/tags/release

variables:
- template: /ci/variables/cfs.yml@eng

extends:
template: /ci/code-mirror.yml@eng
50 changes: 50 additions & 0 deletions eng/ci/official-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
trigger:
batch: true
branches:
include:
- dev
- release/*

# CI only, does not trigger on PRs.
pr: none

schedules:
- cron: '0 0 * * MON'
displayName: At 12:00 AM, only on Monday
branches:
include:
- dev
always: true

resources:
repositories:
- repository: 1es
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
- repository: eng
type: git
name: engineering
ref: refs/tags/release

variables:
- template: /ci/variables/build.yml@eng
- template: /ci/variables/cfs.yml@eng

extends:
template: v1/1ES.Official.PipelineTemplate.yml@1es
parameters:
pool:
name: 1es-pool-azfunc
image: 1es-windows-2022
os: windows

stages:
- stage: Build
jobs:
- template: /eng/templates/build.yml@self

- stage: RunTests
dependsOn: Build
jobs:
- template: /eng/templates/ci-tests.yml@self
38 changes: 38 additions & 0 deletions eng/ci/public-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
trigger:
batch: true
branches:
include:
- dev

pr:
branches:
include:
- dev

schedules:
- cron: '0 0 * * MON'
displayName: At 12:00 AM, only on Monday
branches:
include:
- dev
always: true

resources:
repositories:
- repository: 1es
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release

extends:
template: v1/1ES.Unofficial.PipelineTemplate.yml@1es
parameters:
pool:
name: 1es-pool-azfunc-public
image: 1es-windows-2022
os: windows

stages:
- stage: Build
jobs:
- template: /eng/templates/build.yml@self
29 changes: 29 additions & 0 deletions eng/templates/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
jobs:
- job: "Build"
displayName: 'Build Python Extensions'

strategy:
matrix:
base_extension:
EXTENSION_DIRECTORY: 'azurefunctions-extensions-base'
EXTENSION_NAME: 'Base'
blob_extension:
EXTENSION_DIRECTORY: 'azurefunctions-extensions-bindings-blob'
EXTENSION_NAME: 'Blob'
http_extension:
EXTENSION_DIRECTORY: 'azurefunctions-extensions-http'
EXTENSION_NAME: 'Http'

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.11'
- bash: |
python --version
displayName: 'Check python version'
- bash: |
python -m pip install -U pip
pip install build twine
cd $(EXTENSION_DIRECTORY)
python -m build
displayName: 'Build $(EXTENSION_NAME) Extension'
Loading