Skip to content

Commit 9cd1b19

Browse files
committed
fix: bash parameter expansion in release.yml FFI packaging step
1 parent ee36270 commit 9cd1b19

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,10 @@ jobs:
152152
153153
# Shared library — same rename convention.
154154
# matrix.shared is "libvastlint.so" or "libvastlint.dylib"; derive
155-
# the extension and rename the Rust output to match.
156-
EXT="${{ matrix.shared }##*.}"
157-
cp "$OUTDIR/libvastlint_ffi.${EXT}" "$STAGING/${{ matrix.shared }}"
155+
# the extension using bash parameter expansion (not Actions expression).
156+
SHARED="${{ matrix.shared }}"
157+
EXT="${SHARED##*.}"
158+
cp "$OUTDIR/libvastlint_ffi.${EXT}" "$STAGING/${SHARED}"
158159
159160
tar czf ${{ matrix.archive }} -C "$STAGING" .
160161

0 commit comments

Comments
 (0)