Skip to content

Commit

Permalink
Fix: Asset naming
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Mar 18, 2024
1 parent 0d4af91 commit eb591e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,9 @@ jobs:
# We can't run the produced builds, but we can make sure they exist
- name: Test artifacts presense
run: |
test -f build_artifacts/stringzilla_test_cpp20
test -f build_artifacts/libstringzilla.so
test -f build_artifacts/libstringzillite.so
test -e build_artifacts/stringzilla_test_cpp20
test -e build_artifacts/libstringzilla.so
test -e build_artifacts/libstringzillite.so
test_macos:
name: MacOS
Expand Down
21 changes: 9 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,18 +204,15 @@ jobs:
cmake --build build_release --config Release
# Copy and package the library
echo "ARTIFACT_NAME=stringzillite_linux_${{ matrix.arch }}_${{ steps.set_version.outputs.version }}" >> $GITHUB_ENV
cp build_release/libstringzillite.so "$ARTIFACT_NAME.so"
mkdir -p "$ARTIFACT_NAME/DEBIAN"
touch "$ARTIFACT_NAME/DEBIAN/control"
mkdir -p "$ARTIFACT_NAME/usr/local/lib"
mkdir "$ARTIFACT_NAME/usr/local/include"
cp include/stringzilla/stringzilla.h "$ARTIFACT_NAME/usr/local/include/"
cp build_release/libstringzillite.so "$ARTIFACT_NAME/usr/local/lib/"
echo "Package: stringzilla\nVersion: ${{ steps.set_version.outputs.version }}\nMaintainer: Ash Vardanian\nArchitecture: ${{ matrix.arch }}\nDescription: SIMD-accelerated string search, sort, hashes, fingerprints, & edit distances" > "$ARTIFACT_NAME/DEBIAN/control"
dpkg-deb --build "$ARTIFACT_NAME"
cp build_release/libstringzillite.so "stringzillite_linux_${{ matrix.arch }}_${{ steps.set_version.outputs.version }}.so"
mkdir -p "stringzillite_linux_${{ matrix.arch }}_${{ steps.set_version.outputs.version }}/DEBIAN"
touch "stringzillite_linux_${{ matrix.arch }}_${{ steps.set_version.outputs.version }}/DEBIAN/control"
mkdir -p "stringzillite_linux_${{ matrix.arch }}_${{ steps.set_version.outputs.version }}/usr/local/lib"
mkdir "stringzillite_linux_${{ matrix.arch }}_${{ steps.set_version.outputs.version }}/usr/local/include"
cp include/stringzilla/stringzilla.h "stringzillite_linux_${{ matrix.arch }}_${{ steps.set_version.outputs.version }}/usr/local/include/"
cp build_release/libstringzillite.so "stringzillite_linux_${{ matrix.arch }}_${{ steps.set_version.outputs.version }}/usr/local/lib/"
echo "Package: stringzilla\nVersion: ${{ steps.set_version.outputs.version }}\nMaintainer: Ash Vardanian\nArchitecture: ${{ matrix.arch }}\nDescription: SIMD-accelerated string search, sort, hashes, fingerprints, & edit distances" > "stringzillite_linux_${{ matrix.arch }}_${{ steps.set_version.outputs.version }}/DEBIAN/control"
dpkg-deb --build "stringzillite_linux_${{ matrix.arch }}_${{ steps.set_version.outputs.version }}"
- name: Upload library
uses: xresloader/upload-to-github-release@v1
Expand Down

0 comments on commit eb591e9

Please sign in to comment.