Skip to content

Commit

Permalink
Merge pull request #9 from opentk/develop
Browse files Browse the repository at this point in the history
Update to static-ucrt builds for windows builds
  • Loading branch information
NogginBops committed Jul 13, 2023
2 parents 0baf3d6 + 12952eb commit 4d69eda
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Expand Up @@ -23,15 +23,15 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install xorg-dev
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 3.1.x
dotnet-version: 6.0.x
- name: Download dependencies and create Nuget Package
run: ./make_nuget.ps1 "" ${{ github.run_number }}
shell: pwsh
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: NugetPackage
path: ./artifacts/*.nupkg
Expand Down
4 changes: 2 additions & 2 deletions glfw-redist.csproj
Expand Up @@ -18,12 +18,12 @@
<PackageIcon>opentk.png</PackageIcon>
</PropertyGroup>
<ItemGroup>
<Content Include="tmp/glfw-$(GLFW_VERSION).bin.WIN64/lib-vc2019/*.dll">
<Content Include="tmp/glfw-$(GLFW_VERSION).bin.WIN64/lib-static-ucrt/*.dll">
<PackagePath>runtimes/win-x64/native/</PackagePath>
<Pack>true</Pack>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="tmp/glfw-$(GLFW_VERSION).bin.WIN32/lib-vc2019/*.dll">
<Content Include="tmp/glfw-$(GLFW_VERSION).bin.WIN32/lib-static-ucrt/*.dll">
<PackagePath>runtimes/win-x86/native/</PackagePath>
<Pack>true</Pack>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down
6 changes: 1 addition & 5 deletions make_nuget.ps1
Expand Up @@ -7,11 +7,7 @@ $ErrorActionPreference = "Stop"
[String]$GLFW_SHORT_VERSION = $GLFW_VERSION.Substring(0, $GLFW_VERSION.LastIndexOf("."))

$buildVersionResult = $verBuild.ToString()
$currentBranch=(git log -n 1 --pretty=%D HEAD)
$splt = [regex]::split($currentBranch, "(\s*,\s+)|(\s+->\s+)")
$currentBranch=$splt[2]
$splt = $currentBranch -split "/"
$currentBranch = $splt[$splt.Length - 1]
$currentBranch=(git branch --show-current)
Write-Output "Current Branch: $currentBranch"

if($currentBranch -eq "develop") {
Expand Down

0 comments on commit 4d69eda

Please sign in to comment.