Skip to content

Commit c963fee

Browse files
committed
ci: fix artifact rename for lib prefix on linux/macos, use macos-latest for x86_64
1 parent f5c20fb commit c963fee

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
- name: macos-x86_64
2828
target: x86_64-apple-darwin
29-
os: macos-13
29+
os: macos-latest
3030
lib: rustyjavac_native.dylib
3131

3232
- name: macos-aarch64
@@ -48,8 +48,14 @@ jobs:
4848
- name: Rename artifact
4949
shell: bash
5050
run: |
51-
cp target/${{ matrix.target }}/release/${{ matrix.lib }} \
52-
${{ matrix.lib }}
51+
src=$(find target/${{ matrix.target }}/release -maxdepth 1 -name "*rustyjavac_native*" \( -name "*.so" -o -name "*.dylib" -o -name "*.dll" \) | head -1)
52+
if [ ! -f "$src" ]; then
53+
echo "ERROR: built library not found. Listing release dir:"
54+
ls -la target/${{ matrix.target }}/release/*.so target/${{ matrix.target }}/release/*.dylib target/${{ matrix.target }}/release/*.dll 2>/dev/null || true
55+
exit 1
56+
fi
57+
echo "Found: $src"
58+
cp "$src" ${{ matrix.lib }}
5359
5460
- name: Generate SHA-256
5561
shell: bash

0 commit comments

Comments
 (0)