Skip to content

Commit

Permalink
Push node20 GA workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Aemony authored Apr 23, 2024
1 parent c620bdf commit 5b9928a
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ jobs:

strategy:
fail-fast: false
matrix:
config: [Release]
platform: [Win32, x64]
#matrix:
# config: [Release]
# platform: [Win32, x64]
# Originally the build was then executed with this:
# msbuild SKIF.sln -p:Configuration="${{ matrix.config }}" -p:Platform="${{ matrix.platform }}" -m

steps:
- uses: actions/checkout@v3
Expand All @@ -21,14 +23,21 @@ jobs:
with:
vs-version: '[17.0,18.0)'

- name: Build the source code
- name: Restore the required Nuget packages
run: |
nuget restore SKIF.sln
msbuild SKIF.sln -p:Configuration="${{ matrix.config }}" -p:Platform="${{ matrix.platform }}" -m
- name: Build the codebase (64-bit)
run: |
msbuild SKIF.sln -p:Configuration="Release" -p:Platform="x64" -m
- name: Build the codebase (32-bit)
run: |
msbuild SKIF.sln -p:Configuration="Release" -p:Platform="Win32" -m
- name: Prepare environment variables for the artifact name
run: |
$Version = (Get-Item ".\Builds\SKIF*.exe").VersionInfo.ProductVersion
$Version = (Get-Item ".\Builds\SKIF*.exe").VersionInfo.ProductVersion | Select-Object -First 1
If ($null -eq $Version) { $Version = "unknown" }
"SKIF_VERSION=$Version" | Out-File -FilePath $env:GITHUB_ENV -Encoding UTF8 -Append
"SHORT_SHA=$("${{ github.sha }}".SubString(0, 8))" | Out-File -FilePath $env:GITHUB_ENV -Encoding UTF8 -Append
Expand Down

0 comments on commit 5b9928a

Please sign in to comment.