Adding FNA to Github actions #4
This file contains 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: FlatRedBall | |
on: | |
push: | |
branches: [ "NetStandard" ] | |
pull_request: | |
branches: [ "NetStandard" ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
configuration: [Debug, Release] | |
runs-on: windows-latest # For a list of available runner types, refer to | |
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on | |
steps: | |
- name: Checkout FRB | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
path: 'FlatRedBall' | |
- name: Checkout Gum | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.repository_owner }}/Gum | |
fetch-depth: 1 | |
path: 'Gum' | |
# Install the .NET Core workload | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.x | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild | |
- name: Setup MSBuild.exe | |
uses: microsoft/[email protected] | |
- name: Build FlatRedBall .NET 6 | |
run: dotnet build -c ${{ matrix.configuration }} 'FlatRedBall\Engines\Forms\FlatRedBall.Forms\FlatRedBall.Forms.DesktopGLNet6.sln' | |
- name: Package FlatRedBall .NET 6 | |
uses: actions/upload-artifact@v3 | |
with: | |
name: DesktopGlNet6${{ matrix.configuration }} | |
path: FlatRedBall/Engines/Forms/FlatRedBall.Forms/FlatRedBall.Forms.DesktopGlNet6/bin/${{ matrix.configuration }}/net6.0/ | |
- name: Build FlatRedBall .NET 4 | |
run: dotnet build -c ${{ matrix.configuration }} 'FlatRedBall\Engines\Forms\FlatRedBall.Forms\FlatRedBall.Forms.DesktopGL.sln' | |
- name: Package FlatRedBall .NET 4 | |
uses: actions/upload-artifact@v3 | |
with: | |
name: DesktopGlNet4${{ matrix.configuration }} | |
path: FlatRedBall/Engines/Forms/FlatRedBall.Forms/FlatRedBall.Forms/bin/DesktopGL/${{ matrix.configuration }}/ | |
- name: Build FlatRedBall FNA .NET 7 | |
run: dotnet build -c ${{ matrix.configuration }} 'FlatRedBall\Engines\Forms\FlatRedBall.Forms\FlatRedBall.Forms.FNA.sln' | |
- name: Package FlatRedBall FNA .NET 7 | |
uses: actions/upload-artifact@v3 | |
with: | |
name: DesktopGlNet4${{ matrix.configuration }} | |
path: FlatRedBall/Engines/Forms/FlatRedBall.Forms/FlatRedBall.Forms.FNA/bin/${{ matrix.configuration }}/net7.0/ |