Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmacha committed Jun 1, 2024
1 parent cdeafaf commit ba3ca50
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
on:
workflow_call:
push:
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -38,6 +38,7 @@ jobs:
if ($env:MSVC_VERSION -match "^14\.2[0-9]$") { $TOOLKIT="v142" }
if ($env:MSVC_VERSION -match "^14\.[34][0-9]$") { $TOOLKIT="v143" }
echo "TOOLKIT = $TOOLKIT"
mkdir out/publish
$submodules = echo $(git submodule status)
Set-Content -Path out/install/x86-multi-config/submodules.ref.txt -Value $submodules
$unionApiRef = git submodule status union-api | %{($_ -split "\s+")[1]}
Expand All @@ -49,16 +50,11 @@ jobs:
$os = $env:OS
$filename = "UnionAPI-$TOOLKIT-$os-$date.zip"
echo "filename=$filename" >> $env:GITHUB_OUTPUT
Compress-Archive out/install/x86-multi-config/* out/install/x86-multi-config/$filename
Compress-Archive out/install/x86-multi-config/* out/publish/$filename
$hash = Get-FileHash -Path out/install/x86-multi-config/$filename -Algorithm SHA256
Set-Content -Path out/install/x86-multi-config/$filename.sha256 -Value $hash
Set-Content -Path out/publish/$filename.sha256 -Value $hash
- name: Archive ZIP
uses: actions/upload-artifact@v4
with:
name: ${{ steps.convert-version.outputs.filename }}
path: out/install/x86-multi-config/${{ steps.convert-version.outputs.filename }}
- name: Archive SHA256
uses: actions/upload-artifact@v4
with:
name: ${{ steps.convert-version.outputs.filename }}.sha256
path: out/install/x86-multi-config/${{ steps.convert-version.outputs.filename }}.sha256
path: out/publish/*

0 comments on commit ba3ca50

Please sign in to comment.