Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ami-GS committed Aug 13, 2024
1 parent 1448ce5 commit 526688a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .azure/OneBranch.PullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,28 +172,33 @@ extends:
- template: .azure/obtemplates/build-linux.yml@self
parameters:
config: Debug
job_and_artifact_suffix: 'openssl_Debug'
- template: .azure/obtemplates/build-linux.yml@self
parameters:
config: Release
os: ubuntu_2204
tls: openssl3
job_and_artifact_suffix: 'openssl3_Release'
- template: .azure/obtemplates/build-linux.yml@self
parameters:
config: Debug
os: ubuntu_2204
tls: openssl3
job_and_artifact_suffix: 'openssl3_Debug'
- template: .azure/obtemplates/build-linux.yml@self
parameters:
config: Release
os: ubuntu_2404
tls: openssl3
xdp: "-UseXdp"
job_and_artifact_suffix: 'openssl3_xdp_Release'
- template: .azure/obtemplates/build-linux.yml@self
parameters:
config: Debug
os: ubuntu_2404
tls: openssl3
xdp: "-UseXdp"
job_and_artifact_suffix: 'openssl3_xdp_Debug'

- stage: package_linux
displayName: Package Linux
Expand Down
2 changes: 2 additions & 0 deletions .azure/obtemplates/build-distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,14 @@ jobs:
linuxos: ubuntu_2404
config: Release
tls: openssl3
xdp: -UseXdp
- template: ./download-artifacts.yml
parameters:
platform: linux
linuxos: ubuntu_2404
config: Debug
tls: openssl3
xdp: -UseXdp

- template: ./download-artifacts.yml
parameters:
Expand Down
5 changes: 3 additions & 2 deletions .azure/obtemplates/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ parameters:
platform: 'linux'
os: 'ubuntu_2004'
xdp: ''
job_and_artifact_suffix: 'openssl_Release'

jobs:
- job: build_${{ parameters.os }}_${{ parameters.tls }}_${{ parameters.config }}
displayName: ${{ parameters.os }} ${{ parameters.tls }} ${{ parameters.config }}
- job: build_${{ parameters.job_and_artifact_suffix }}
displayName: ${{ parameters.platform }} ${{ parameters.tls }} ${{ parameters.config }}
pool:
type: linux
variables:
Expand Down
5 changes: 3 additions & 2 deletions .azure/obtemplates/download-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ parameters:
linuxos: 'ubuntu_2004'
tls: ''
config: ''
xdp: ''

steps:
- task: DownloadPipelineArtifact@2
Expand All @@ -15,8 +16,8 @@ steps:
preferTriggeringPipeline: true
runVersion: specific
runId: $(resources.pipeline.onebranch.runID)
${{ if eq(parameters.platform, 'linux') }}:
artifact: drop_build_${{ parameters.platform }}_build_${{ parameters.linuxos }}_${{ parameters.tls }}_${{ parameters.config }}
${{ if eq(parameters.platform, 'linux') && ne(parameters.xdp, '')}}:
artifact: drop_build_${{ parameters.platform }}_build_${{ parameters.platform }}_${{ parameters.tls }}_xdp_${{ parameters.config }}
${{ else }}:
artifact: drop_build_${{ parameters.platform }}_build_${{ parameters.platform }}_${{ parameters.tls }}_${{ parameters.config }}
path: $(Build.SourcesDirectory)/artifacts/bin/${{ parameters.platform }}
Expand Down
2 changes: 1 addition & 1 deletion scripts/make-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ if [ "$OS" == "linux" ]; then
--license MIT \
--url https://github.com/microsoft/msquic \
--log error \
${FILES}
${FILES} ${ARTIFACTS}/datapath_raw_xdp_kern.o=/usr/${LIBDIR}/datapath_raw_xdp_kern.o
fi
fi

Expand Down

0 comments on commit 526688a

Please sign in to comment.