From 886f9255fd16becd3141cf5dce67113356269da8 Mon Sep 17 00:00:00 2001 From: Hiddify <114227601+hiddify1@users.noreply.github.com> Date: Sat, 22 Jul 2023 07:37:01 +0200 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e3f1ae7..795e8448 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,11 +84,21 @@ jobs: run: | make ${{ matrix.platform }}-release - - name: Copy to out + - name: Copy to out WINDOWS + if: matrix.platform == 'windows' + run: | + New-Item -ItemType Directory -Force -Name "out" + $EXT_ARRAY = "${{ matrix.targets }}" -split "," + foreach ($EXT in $EXT_ARRAY) { + # Find all files with this extension in the current directory, and copy them to "out" directory + Get-ChildItem -Recurse -File -Filter "*.$EXT" | Copy-Item -Destination "out" + } + + - name: Copy to out unix + if: matrix.platform != 'windows' run: | mkdir out IFS=',' read -r -a EXT_ARRAY <<< "${{ matrix.targets }}" - # Loop over extensions for EXT in "${EXT_ARRAY[@]}"; do # Find all files with this extension in SRC_DIR, and copy them to DST_DIR