diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 697202a3..8c59aa5c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,8 +87,17 @@ jobs: - name: Release ${{ matrix.platform }} run: | make ${{ matrix.platform }}-release + + - name: Copy to out + run: | mkdir out - find ./ -type f -name "$(echo '*.${{ matrix.targets }}'| tr ',' ' ')" -exec cp {} 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 + find "." -type f -name "*.$EXT" -exec cp {} "out" \; + done - uses: actions/upload-artifact@v3 with: