From 7b38dc99fe95e5989f006e1b8d843e7a222ef586 Mon Sep 17 00:00:00 2001 From: "Oleg V. Kozlyuk" Date: Sun, 6 Oct 2024 00:17:33 +0200 Subject: [PATCH] Prevent exports.txt from getting into result package --- .github/workflows/reusable-build.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/reusable-build.yml b/.github/workflows/reusable-build.yml index e35793151..c50b0e93e 100644 --- a/.github/workflows/reusable-build.yml +++ b/.github/workflows/reusable-build.yml @@ -98,10 +98,9 @@ jobs: run: cmake --install . --prefix ${{ github.workspace }}/out/install - name: List exports - working-directory: ${{ github.workspace }}/out/install/Orbiter shell: cmd run: | - dumpbin /EXPORTS Modules\Server\Orbiter.exe /OUT:exports_tmp0.txt + dumpbin /EXPORTS ${{ github.workspace }}\out\install\Orbiter\Modules\Server\Orbiter.exe /OUT:exports_tmp0.txt type exports_tmp0.txt | find " ?" > exports_tmp1.txt for /F "tokens=4" %%F in (exports_tmp1.txt) do @echo %%F >> exports_tmp2.txt undname exports_tmp2.txt | sort > exports.txt @@ -111,7 +110,7 @@ jobs: if: ${{ inputs.architecture == 'x86' }} shell: cmd continue-on-error: true - run: git diff -U0 --ignore-cr-at-eol --ignore-space-at-eol --no-index exports.2016.txt out/install/Orbiter/exports.txt + run: git diff -U0 --ignore-cr-at-eol --ignore-space-at-eol --no-index exports.2016.txt exports.txt - name: Pack if: ${{ github.ref == 'refs/heads/main' }} @@ -124,7 +123,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: exports-${{ inputs.architecture }} - path: ${{ github.workspace }}/out/install/Orbiter/exports.txt + path: ${{ github.workspace }}/exports.txt retention-days: 1 - name: Upload Build Artifact