Skip to content

Commit

Permalink
Updated to net 8.0 and create CI workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcant0n committed Sep 3, 2024
1 parent fe66f9b commit a736579
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 20 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
nugetOutputPath: ${{ 'nupkgs' }}

jobs:
build_and_publish:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- uses: nuget/setup-nuget@v2
with:
nuget-version: "6.x"
- name: Generate Bindings
id: build_bindings
shell: pwsh
run: |
./Generate-Bindings.ps1
- name: Generate NuGet packages
id: build_nugets
shell: pwsh
run: |
./Generate-NuGets.ps1 -revision ${{ github.run_number }} -outputfolder ${{ env.nugetOutputPath }}
- name: SendGrid Mail Action
if: ${{ failure() }}
uses: mmichailidis/[email protected]
with:
# The token for sendgrid
sendgrid-token: ${{ secrets.WAVE_SENDGRID_TOKEN }}
# List of emails separated by comma that the email will go
mail: ${{ secrets.EVERGINE_EMAILREPORT_LIST }}
# The email that will be shown as sender
from: ${{ secrets.EVERGINE_EMAIL }}
# The subject of the email
subject: WebGPU.Net CD build has failed
# Defines if it should be one email with multiple address or multiple emails with a single address
individual: false
# The body of the mail. The placeholders that can be used are $EVENT$, $ISSUE$, $ACTION$
text: something went wrong when building WebGPU.Net
10 changes: 4 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ jobs:
build_and_publish:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3 # 7.x is needed to support pointers to managed memory
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.x
8.x
- uses: nuget/setup-nuget@v1
dotnet-version: 8.x
- uses: nuget/setup-nuget@v2
with:
nuget-version: "6.x"
- name: Generate Bindings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</PropertyGroup>

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
Expand Down
2 changes: 1 addition & 1 deletion WebGPUGen/HelloTriangle/HelloTriangle.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>net8.0-windows7.0</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
Expand Down
14 changes: 2 additions & 12 deletions WebGPUGen/WebGPUGen.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,9 @@ VisualStudioVersion = 17.5.33516.290
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebGPUGen", "WebGPUGen\WebGPUGen.csproj", "{C1653A53-2DAA-4DB7-AAE0-167A5D3F7E0C}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{66704B13-9A43-452D-9048-87CA2141B725}"
ProjectSection(SolutionItems) = preProject
..\.gitignore = ..\.gitignore
..\azure-pipelines-pr.yml = ..\azure-pipelines-pr.yml
..\azure-pipelines.yml = ..\azure-pipelines.yml
..\Directory.Build.props = ..\Directory.Build.props
..\Generate-NuGets.ps1 = ..\Generate-NuGets.ps1
..\README.md = ..\README.md
EndProjectSection
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Evergine.Bindings.WebGPU", "Evergine.Bindings.WebGPU\Evergine.Bindings.WebGPU.csproj", "{EBBA34FA-0B31-4971-BB6F-FE3B055DE5D4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Evergine.Bindings.WebGPU", "Evergine.Bindings.WebGPU\Evergine.Bindings.WebGPU.csproj", "{EBBA34FA-0B31-4971-BB6F-FE3B055DE5D4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloTriangle", "HelloTriangle\HelloTriangle.csproj", "{11F45330-6F71-45A7-B08F-9A14C67F24A0}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloTriangle", "HelloTriangle\HelloTriangle.csproj", "{11F45330-6F71-45A7-B08F-9A14C67F24A0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down

0 comments on commit a736579

Please sign in to comment.