Skip to content

Commit 3e8103d

Browse files
committed
Add extraction step for prebuilds in CI workflow
1 parent d939b14 commit 3e8103d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,20 @@ jobs:
119119
ls prebuilds/
120120
name: List prebuilds
121121
122+
# untar each prebuild file named *<platform>-<arch>.tar.gz
123+
# and move its build/Release/ contents to a directory <platform>-<arch>/
124+
- run: |
125+
for f in *.tar.gz; do
126+
platform_arch="${f%.tar.gz}"
127+
platform_arch="${platform_arch##*-v3-}"
128+
mkdir -p "$platform_arch"
129+
tar -xzf "$f" -C "$platform_arch" --strip-components=2
130+
done
131+
rm *.tar.gz
132+
name: Extract prebuilds
133+
shell: bash
134+
working-directory: prebuilds
135+
122136
- name: Upload prebuilds to GitHub
123137
run: npx prebuild --verbose --upload-all ${{ secrets.GITHUB_TOKEN }}
124138
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)