Fix packaging of native library files in Ruby workflow
This commit is contained in:
parent
621bc83302
commit
d69925f379
|
@ -62,17 +62,28 @@ jobs:
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: windows
|
name: windows
|
||||||
path: ruby/lib
|
path: ruby/lib/windows
|
||||||
- name: Download Linux built library
|
- name: Download Linux built library
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: linux
|
name: linux
|
||||||
path: ruby/lib
|
path: ruby/lib/linux
|
||||||
- name: Download macOS built library
|
- name: Download macOS built library
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: macos
|
name: macos
|
||||||
path: ruby/lib
|
path: ruby/lib/macos
|
||||||
|
- name: Move native library files to correct location
|
||||||
|
shell: bash
|
||||||
|
working-directory: ./ruby/lib
|
||||||
|
run: |
|
||||||
|
for f in *; do
|
||||||
|
if [ -d "$f" ]; then
|
||||||
|
mv $f/* "$f.nativelib"
|
||||||
|
rmdir "$f"
|
||||||
|
mv "$f.nativelib" "$f"
|
||||||
|
fi
|
||||||
|
done
|
||||||
- name: Package gem
|
- name: Package gem
|
||||||
working-directory: ./ruby
|
working-directory: ./ruby
|
||||||
run: gem build hyperbuild.gemspec
|
run: gem build hyperbuild.gemspec
|
||||||
|
|
Loading…
Reference in New Issue