From 9d8ebb44878c174aa289be5634fde6a39291f0ea Mon Sep 17 00:00:00 2001 From: Nick Banks Date: Mon, 18 Sep 2023 20:12:33 -0400 Subject: [PATCH] Filter Build Artifacts (#3861) --- .github/workflows/build-reuse-win.yml | 6 ++++++ .github/workflows/build-reuse-winkernel.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/build-reuse-win.yml b/.github/workflows/build-reuse-win.yml index 9e1a14154..afa7b1b30 100644 --- a/.github/workflows/build-reuse-win.yml +++ b/.github/workflows/build-reuse-win.yml @@ -94,6 +94,12 @@ jobs: if: inputs.test == '' shell: pwsh run: scripts/build.ps1 -Config ${{ inputs.config }} -Platform ${{ inputs.plat }} -Arch ${{ inputs.arch }} -Tls ${{ inputs.tls }} ${{ inputs.xdp }} ${{ inputs.sanitize }} ${{ inputs.static }} + - name: Filter Build Artifacts + shell: pwsh + run: | + Remove-Item artifacts/bin/xdp -Recurse -Force -ErrorAction Ignore + Remove-Item artifacts/corenet-ci-main -Recurse -Force -ErrorAction Ignore + Remove-Item artifacts/xdp -Recurse -Force -ErrorAction Ignore - name: Upload build artifacts uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 with: diff --git a/.github/workflows/build-reuse-winkernel.yml b/.github/workflows/build-reuse-winkernel.yml index afc66bfe7..47dfdbe55 100644 --- a/.github/workflows/build-reuse-winkernel.yml +++ b/.github/workflows/build-reuse-winkernel.yml @@ -81,6 +81,12 @@ jobs: - name: Sign Kernel shell: pwsh run: scripts/sign.ps1 -Config ${{ inputs.config }} -Arch ${{ inputs.arch }} -Tls ${{ inputs.tls }} + - name: Filter Build Artifacts + shell: pwsh + run: | + Remove-Item artifacts/bin/xdp -Recurse -Force -ErrorAction Ignore + Remove-Item artifacts/corenet-ci-main -Recurse -Force -ErrorAction Ignore + Remove-Item artifacts/xdp -Recurse -Force -ErrorAction Ignore - name: Upload build artifacts uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 with: