Skip to content

Commit

Permalink
Update zip command in CMake workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GengGode committed Jan 23, 2024
1 parent 73015da commit 411512a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,10 @@ jobs:
echo "_version=$version" >> $env:GITHUB_OUTPUT
- name: Zip the Install Directory
uses: montudor/[email protected]
with:
args: -r -9 -y
files: ${{github.workspace}}/build/install/*
output: ${{github.workspace}}/build/libocr-${{ steps.get_version.outputs._version }}.zip
run: |
$version = (Get-Content -Path ${{github.workspace}}/resource/version.ver -TotalCount 1).Trim()
echo "dll version: $version"
Compress-Archive -Path ${{github.workspace}}/build/install -DestinationPath ${{github.workspace}}/build/libocr-$version.zip
- name: Upload a Build Artifact
uses: actions/[email protected]
Expand Down

0 comments on commit 411512a

Please sign in to comment.