mirror of
https://github.com/logos-storage/logos-storage-go-bindings.git
synced 2026-01-02 13:33:10 +00:00
Fix artifact names
This commit is contained in:
parent
093c72fad5
commit
c1e9a1acf8
22
.github/workflows/artifacts.yml
vendored
22
.github/workflows/artifacts.yml
vendored
@ -79,24 +79,34 @@ jobs:
|
||||
make libcodex
|
||||
|
||||
- name: Package artifacts (Linux / macOS)
|
||||
if: matrix.target.os != 'windows-latest'
|
||||
if: matrix.target.os == 'ubuntu-latest'
|
||||
run: |
|
||||
if [ "$(uname)" = "Linux" ]; then sudo apt-get update && sudo apt-get install -y zip; fi
|
||||
zip -j codex-${{ matrix.target.os }}-${{ matrix.target.cpu }}.zip vendor/nim-codex/build/libcodex.${{ matrix.target.lib_ext }} vendor/nim-codex/library/libcodex.h
|
||||
sudo apt-get update && sudo apt-get install -y zip
|
||||
ZIPFILE=codex-linux-${{ matrix.target.cpu }}.zip
|
||||
zip -j $ZIPFILE vendor/nim-codex/build/libcodex.${{ matrix.target.lib_ext }} vendor/nim-codex/library/libcodex.h
|
||||
echo "ZIPFILE=$ZIPFILE" >> $GITHUB_ENV
|
||||
|
||||
- name: Package artifacts (Linux / macOS)
|
||||
if: matrix.target.os == 'macos-latest'
|
||||
run: |
|
||||
ZIPFILE=codex-macos-${{ matrix.target.cpu }}.zip
|
||||
zip -j $ZIPFILE vendor/nim-codex/build/libcodex.${{ matrix.target.lib_ext }} vendor/nim-codex/library/libcodex.h
|
||||
echo "ZIPFILE=$ZIPFILE" >> $GITHUB_ENV
|
||||
|
||||
- name: Package artifacts (Windows)
|
||||
if: matrix.target.os == 'windows-latest'
|
||||
shell: msys2 {0}
|
||||
run: |
|
||||
ZIPFILE=codex-${{ matrix.target.os }}-${{ matrix.target.cpu }}.zip
|
||||
ZIPFILE=codex-windows-${{ matrix.target.cpu }}.zip
|
||||
(cd vendor/nim-codex/build && 7z a -tzip "${GITHUB_WORKSPACE}/${ZIPFILE}" libcodex.dll)
|
||||
(cd vendor/nim-codex/library && 7z a -tzip "${GITHUB_WORKSPACE}/${ZIPFILE}" libcodex.h)
|
||||
echo "ZIPFILE=$ZIPFILE" >> $GITHUB_ENV
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: codex-${{ matrix.target.os }}-${{ matrix.target.cpu }}
|
||||
path: codex-${{ matrix.target.os }}-${{ matrix.target.cpu }}.zip
|
||||
name: ${{ env.ZIPFILE }}
|
||||
path: ${{ env.ZIPFILE }}
|
||||
if-no-files-found: error
|
||||
|
||||
publish-release:
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
## v0.0.8 (2025-10-13)
|
||||
## v0.0.9 (2025-10-13)
|
||||
### Notes
|
||||
|
||||
- First release
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user