File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff 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/')
You can’t perform that action at this time.
0 commit comments