From 71fcaf5641bd9adf3863946640c24bb1bb2ce3b8 Mon Sep 17 00:00:00 2001 From: Matt Burridge <81111055+mburridge96@users.noreply.github.com> Date: Thu, 21 Nov 2024 11:59:34 +0000 Subject: [PATCH] attempted to fix binary creation in CI for cli --- .github/workflows/cli.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index ce1f69a..7e7a349 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -57,9 +57,14 @@ jobs: - name: Package Binary run: | BINARY=target/${{ matrix.rust_target }}/release/rocraters + WIN_BINARY=target/${{ matrix.rust_target }}/release/rocraters.exe ARCHIVE=dist/${{ matrix.platform }}/rocraters-${{ matrix.rust_target }}.${{ matrix.archive }} if [[ "${{ matrix.archive }}" == "zip" ]]; then - zip -j $ARCHIVE $BINARY + if [[ "${{ matrix.platform }}" == "windows" ]]; then + zip -j $ARCHIVE $WIN_BINARY + else + zip -j $ARCHIVE $BINARY + fi elif [[ "${{ matrix.archive }}" == "tar.gz" ]]; then tar -czvf $ARCHIVE -C target/${{ matrix.rust_target }}/release rocraters elif [[ "${{ matrix.archive }}" == "tar.xz" ]]; then @@ -73,4 +78,4 @@ jobs: uses: actions/upload-artifact@v3 with: name: rocraters-${{ matrix.platform }}-${{ matrix.archive }} - path: rocraters/dist/${{ matrix.platform }}/* + path: dist/${{ matrix.platform }}/*