Skip to content

Commit

Permalink
added extension to cardamon executable
Browse files Browse the repository at this point in the history
  • Loading branch information
ohuu committed Aug 27, 2024
1 parent 0ad59ba commit 71da953
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ jobs:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
ext: tgz
compress_cmd: tar -czf cardamon-x86_64-unknown-linux-gnu-${{ github.ref_name }}.tgz -C artifact .
exe_ext:
archive_ext: tgz
archive_cmd: tar -czf cardamon-x86_64-unknown-linux-gnu-${{ github.ref_name }}.tgz -C artifact .
- os: windows-latest
target: x86_64-pc-windows-msvc
ext: zip
compress_cmd: Compress-Archive -Path artifact/* -Destination cardamon-x86_64-pc-windows-msvc-${{ github.ref_name }}.zip
exe_ext: .exe
archive_ext: zip
archive_cmd: Compress-Archive -Path artifact/* -Destination cardamon-x86_64-pc-windows-msvc-${{ github.ref_name }}.zip
runs-on: ${{ matrix.os }}
steps:
- name: Checkout cardamon
Expand All @@ -62,17 +64,17 @@ jobs:
- name: Build release artifact
run: |
mkdir artifact
cp target/release/cardamon artifact/cardamon
cp target/release/cardamon${{ matrix.exe_ext }} artifact/cardamon${{ matrix.exe_ext }}
cp LICENSE artifact/
cp README.md artifact/
- name: Compress build artifact
run: ${{ matrix.compress_cmd }}
run: ${{ matrix.archive_cmd }}

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: cardamon-${{ matrix.target }}-${{ github.ref_name }}.${{ matrix.ext }}
path: cardamon-${{ matrix.target }}-${{ github.ref_name }}.${{ matrix.archive_ext }}

publish_crate:
needs: [build]
Expand Down

0 comments on commit 71da953

Please sign in to comment.