Skip to content

Commit

Permalink
Set up CI with Azure Pipelines (#31)
Browse files Browse the repository at this point in the history
* Set up CI with Azure Pipelines

[skip ci]

* Update azure-pipelines.yml for Azure Pipelines

* Update common.props

* Try and get CI to stop complaining
  • Loading branch information
Perksey authored Aug 3, 2019
1 parent dcbe841 commit 736ce17
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
22 changes: 22 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
trigger:
- master

pr:
- master

jobs:
- job: Build

pool:
vmImage: 'ubuntu-latest'

variables:
buildConfiguration: 'Release'

steps:
- script: dotnet run --configuration $(buildConfiguration) --project src/Core/BuildTools/BuildTools.csproj build/binder_scripts/build.json
displayName: 'Bind'
- script: dotnet pack --configuration $(buildConfiguration) --version-suffix build$(Build.BuildNumber)
displayName: 'Build/Pack'
- publish: build/output_packages
artifact: NuGet Packages
3 changes: 2 additions & 1 deletion build/props/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<PackageIconUrl>https://static.ultz.co.uk/img/SilkDotNet.png</PackageIconUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReleaseNotes>- First preview release</PackageReleaseNotes>
<PackageOutputPath>$(MSBuildThisFileDirectory)/../output_packages</PackageOutputPath>
<Version>1.0.0-preview</Version>
<Description>Silk.NET is a high-speed, advanced library, providing bindings to popular low-level APIs such as OpenGL and OpenAL.</Description>
</PropertyGroup>
</Project>
</Project>
2 changes: 1 addition & 1 deletion src/Windowing/Silk.NET.Windowing.Desktop/GlfwWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ public unsafe void Run()
}
else {
// Raise UpdateFrame, but don't await it yet.
var task = Task.Run(RaiseUpdateFrame);
var task = Task.Run((Action)RaiseUpdateFrame); // cast to action, ambiguous call

// Loop while we're still updating - the Update thread might be calling the main thread
while (!task.IsCompleted)
Expand Down

0 comments on commit 736ce17

Please sign in to comment.