From 526688a464de1dcc568ce6b8ee0900cab2cb7402 Mon Sep 17 00:00:00 2001 From: ami-GS <1991.daiki@gmail.com> Date: Tue, 13 Aug 2024 11:56:29 -0700 Subject: [PATCH] fix --- .azure/OneBranch.PullRequest.yml | 5 +++++ .azure/obtemplates/build-distribution.yml | 2 ++ .azure/obtemplates/build-linux.yml | 5 +++-- .azure/obtemplates/download-artifacts.yml | 5 +++-- scripts/make-packages.sh | 2 +- 5 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.azure/OneBranch.PullRequest.yml b/.azure/OneBranch.PullRequest.yml index ac9d0721ac..aebd1e3e1a 100644 --- a/.azure/OneBranch.PullRequest.yml +++ b/.azure/OneBranch.PullRequest.yml @@ -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 diff --git a/.azure/obtemplates/build-distribution.yml b/.azure/obtemplates/build-distribution.yml index 377a6ce3bb..b32fa57ea2 100644 --- a/.azure/obtemplates/build-distribution.yml +++ b/.azure/obtemplates/build-distribution.yml @@ -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: diff --git a/.azure/obtemplates/build-linux.yml b/.azure/obtemplates/build-linux.yml index 5fd6f8e054..935118478a 100644 --- a/.azure/obtemplates/build-linux.yml +++ b/.azure/obtemplates/build-linux.yml @@ -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: diff --git a/.azure/obtemplates/download-artifacts.yml b/.azure/obtemplates/download-artifacts.yml index d6a92f31dd..aeb944b253 100644 --- a/.azure/obtemplates/download-artifacts.yml +++ b/.azure/obtemplates/download-artifacts.yml @@ -5,6 +5,7 @@ parameters: linuxos: 'ubuntu_2004' tls: '' config: '' + xdp: '' steps: - task: DownloadPipelineArtifact@2 @@ -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 }} diff --git a/scripts/make-packages.sh b/scripts/make-packages.sh index 5348a6a612..0aff396395 100755 --- a/scripts/make-packages.sh +++ b/scripts/make-packages.sh @@ -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