From 330a620b6ff58865b68295b6a3eeef11958f77c1 Mon Sep 17 00:00:00 2001 From: Avii Date: Fri, 12 Jul 2024 13:24:28 +0200 Subject: [PATCH] fix --- .gitea/workflows/build-windows.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-windows.yaml b/.gitea/workflows/build-windows.yaml index 0c18c18..550bf4e 100644 --- a/.gitea/workflows/build-windows.yaml +++ b/.gitea/workflows/build-windows.yaml @@ -54,8 +54,12 @@ jobs: run: | rustup update rustup toolchain install nightly - - name: Create output directory + - name: Create output directory for windows + if: matrix.platform == 'windows-2022' run: mkdir -f output + - name: Create output directory for linux + if: matrix.platform != 'windows-2022' + run: mkdir output - name: Build release run: cargo +nightly -Z unstable-options b -r --artifact-dir ./output - name: Collect windows artifacts @@ -64,7 +68,7 @@ jobs: cp -r -fo assets $env:GITEA_WORKSPACE/output/ Compress-Archive -Path $env:GITEA_WORKSPACE/output/* -DestinationPath $env:GITEA_WORKSPACE/${{ gitea.event.repository.name }}_${{ matrix.name }}.${{ matrix.archive }} - name: Collect linux/macos artifacts - if: matrix.platform != 'windows-latest' + if: matrix.platform != 'windows-2022' run: | cp -rf assets ${GITEA_WORKSPACE}/output/ tar -czvf ${GITHUB_WORKSPACE}/${{ gitea.event.repository.name }}_${{ matrix.name }}.${{ matrix.archive }} -C ${GITHUB_WORKSPACE}/output/ .