From c1e9a1acf8ca577ed6c95e2252e68cf543c4baea Mon Sep 17 00:00:00 2001 From: Arnaud Date: Mon, 13 Oct 2025 12:23:08 +0200 Subject: [PATCH] Fix artifact names --- .github/workflows/artifacts.yml | 22 ++++++++++++++++------ RELEASE.md | 2 +- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index 6d5e6b6..3e53ed5 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -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: diff --git a/RELEASE.md b/RELEASE.md index f51d013..c03d656 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,4 +1,4 @@ -## v0.0.8 (2025-10-13) +## v0.0.9 (2025-10-13) ### Notes - First release