Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
shenlebantongying committed Jul 11, 2024
1 parent aa804e8 commit 1c32d79
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/create-vcpkg-export-archive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
vcpkg x-update-baseline
vcpkg install --x-feature=breakpad
vcpkg export --raw --output-dir=.\exports --output= ${{ env.outputName }}
vcpkg export --raw --output-dir=.\exports --output=${{ env.outputName }}
echo "Starts compressing..."
cd .\exports\
cmake -E tar c ${{ env.outputName }}.tar.zst --zstd ./ ${{ env.outputName }}
Expand All @@ -26,24 +26,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
$vcpkgList = vcpkg list
vcpkg list
$vcpkgBaselineVersion = $(Get-Content .\vcpkg-configuration.json | ConvertFrom-Json).'default-registry'.'baseline'
$fileHash = Get-FileHash ${{ env.outputName }}.tar.zst SHA512
$dateString = Get-Date -Format "yyMMdd"
$tagName = "vcpkg-export-${dateString}-${tagName}"
$tagName = "vcpkg_export_${dateString}_${vcpkgBaselineVersion}"
cd .\exports
$fileHash = Get-FileHash ${{ env.outputName }}.tar.zst SHA512
$notes="GoldenDict-ng's windows build artifacts, for development purpose only.
vcpkg baseline version: <https://github.com/microsoft/vcpkg/tree/${vcpkgBaselineVersion}>
archive SHA512: ${$fileHash}
vcpkg packages:
```
${vcpkgList}
```
archive SHA512: ${fileHash}
"
echo $notes
gh release creat "${tagName}" --notes "${notes}" --title "vcpkg package export archive" --latest=false
gh release create "${tagName}" --notes "${notes}" --title "vcpkg package export archive" --latest=false
gh release upload "${tagName}" ${{ env.outputName }}.tar.zst --clobber

0 comments on commit 1c32d79

Please sign in to comment.