From 530bf77839a74d4f13847ba244a20734ac7ab119 Mon Sep 17 00:00:00 2001 From: Hiddify Date: Thu, 20 Jul 2023 09:02:59 +0200 Subject: [PATCH] fix: android --- .github/workflows/ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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: