Skip to content

Commit

Permalink
attempted to fix binary creation in CI for cli
Browse files Browse the repository at this point in the history
  • Loading branch information
mburridge96 committed Nov 21, 2024
1 parent 0befcec commit 71fcaf5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}/*

0 comments on commit 71fcaf5

Please sign in to comment.