Skip to content

Commit

Permalink
fix: do not hard code shared library extension
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Feb 6, 2025
1 parent 8d8ba43 commit d173b6b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,13 @@ jobs:
path: zig-out/lib/libblst.a
compression-level: 0 # No compression

- name: Set shared library extension
id: set_extension
run: echo "ext=$([[ ${{ matrix.platform }} == 'x86_64-linux' ]] && echo 'so' || [[ ${{ matrix.platform }} == 'aarch64-linux' ]] && echo 'so' || echo 'dylib')" >> $GITHUB_ENV

- name: Upload shared library artifact for ${{ matrix.platform }}
uses: actions/upload-artifact@v4
with:
name: libblst_min_pk_${{ matrix.platform }}.dylib
path: zig-out/lib/libblst_min_pk.so
name: libblst_min_pk_${{ matrix.platform }}.${{ env.ext }}
path: zig-out/lib/libblst_min_pk.${{ env.ext }}
compression-level: 0 # No compression

0 comments on commit d173b6b

Please sign in to comment.