summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorruki <[email protected]>2020-08-26 23:32:07 +0800
committerruki <[email protected]>2020-08-26 23:32:07 +0800
commit54b41f1e3c9760b4788851744b2ccdcdf31fce31 (patch)
tree1a581272a184e9b04ceb5d85f458427e849d5434 /.github/workflows
parente0cfa51d2ef245b4d003c2d72ace9781477d26e7 (diff)
fix ci
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/windows.yml3
1 files changed, 1 insertions, 2 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index b94a731bb..af9f98ce9 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -81,6 +81,7 @@ jobs:
Copy-Item ./curl-ca-bundle.crt ./winenv/bin
$version = (Get-Command xmake/xmake.exe).FileVersionInfo
./nsis/makensis.exe /DMAJOR=$($version.ProductMajorPart) /DMINOR=$($version.ProductMinorPart) /DALTER=$($version.ProductBuildPart) /DBUILD=$($($version.ProductVersion -split '\+')[1]) /D${{ matrix.arch }} .\scripts\installer.nsi
+ (New-Item ./artifacts/${{env.RELEASE_NAME}} -ItemType Directory).FullName
Copy-Item scripts/xmake.exe ./artifacts/${{env.RELEASE_NAME}}/xmake.exe
# build installer for tinyc
if ("${{ matrix.arch }}" -eq "x64"){
@@ -111,8 +112,6 @@ jobs:
Copy-Item ./xmake ./archive/xmake -Recurse
[System.IO.Compression.ZipFile]::CreateFromDirectory("$PWD\archive", "$PWD\archive.zip", [System.IO.Compression.CompressionLevel]::Optimal, $false, [FixedEncoder]::new())
(Get-FileHash .\archive.zip -Algorithm SHA256).Hash.ToLower() + " *xmake.zip`n" | Out-File ./shafile -Encoding ASCII -NoNewLine -Append
- # copy to artifacts/arch
- (New-Item ./artifacts/${{env.RELEASE_NAME}} -ItemType Directory).FullName
Copy-Item archive.zip ./artifacts/${{env.RELEASE_NAME}}
Copy-Item shafile ./artifacts/${{env.RELEASE_NAME}}