rename explosions events to deaths #1
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | name: C# | |
| on: [push, pull_request] | |
| jobs: | |
| build1: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: install .NET SDK | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - name: compile | |
| run: | | |
| csc $(find csharp -name '*.cs') -out:bot.exe | |
| build2: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: install .NET SDK | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - name: create csproj | |
| run: | | |
| cat << 'EOF' > temp.csproj | |
| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <OutputType>Exe</OutputType> | |
| <TargetFramework>net8.0</TargetFramework> | |
| </PropertyGroup> | |
| <ItemGroup> | |
| <Compile Include="**/*.cs" /> | |
| </ItemGroup> | |
| <ItemGroup> | |
| <PackageReference Include="System.Text.Json" Version="8.0.0" /> | |
| <PackageReference Include="System.Memory" Version="5.0.0" /> | |
| </ItemGroup> | |
| </Project> | |
| EOF | |
| - name: compile | |
| run: | | |
| dotnet restore temp.csproj | |
| dotnet build temp.csproj --configuration Release | |
| build3: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: install .NET SDK | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - name: compile | |
| run: | | |
| mkdir temp_proj | |
| cd temp_proj | |
| dotnet new console --framework net8.0 | |
| cp -r ../**/*.cs . # copy source files | |
| dotnet add package System.Text.Json | |
| dotnet add package System.Memory | |
| dotnet build --configuration Release |