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 2a78b12 commit 9969239
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ jobs:
MSVC_VERSION: ${{ matrix.toolit }}
run: |
$TOOLKIT=""
if ($env:MSVC_VERSION -match "^14.2[0-9]$") { $TOOLKIT="v142" }
if ($env:MSVC_VERSION -match "^14.[34][0-9]$") { $TOOLKIT="v143" }
echo $env:MSVC_VERSION
if ($env:MSVC_VERSION -match "^14\.2[0-9]$") { $TOOLKIT="v142" }
if ($env:MSVC_VERSION -match "^14\.[34][0-9]$") { $TOOLKIT="v143" }
echo $TOOLKIT
echo "TOOLKIT=$TOOLKIT" >> $env:GITHUB_OUTPUT
echo $(git submodule status) >> out/install/x86-multi-config/submodules.ref.txt
$unionApiRef = git submodule status union-api | %{($_ -split "\s+")[1]}
Expand All @@ -44,10 +46,11 @@ jobs:
echo $gothicApiRef >> out/install/x86-multi-config/gothic-api.ref.txt
$date = Get-Date -Format 'yyyy.MM.ddTHH.mm'
echo $date >> out/install/x86-multi-config/build-time.txt
$filename = UnionAPI-$TOOLKIT-$env:OS-$date.zip
$os = $env:OS
$filename = "UnionAPI-$TOOLKIT-$os-$date.zip"
echo $filename >> $env:GITHUB_OUTPUT
Compress-Archive out/install/x86-multi-config/* out/install/x86-multi-config/$filename
$hash = Get-FileHash -Path $filename -Algorithm SHA256
$hash = Get-FileHash -Path out/install/x86-multi-config/$filename -Algorithm SHA256
echo $hash >> out/install/x86-multi-config/$filename.sha256
- name: Archive ZIP
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 9969239

Please sign in to comment.