@@ -51,19 +51,17 @@ jobs:
5151 uses : actions/setup-dotnet@v3
5252 with :
5353 dotnet-version : |
54- 3.1.x
55- 6.0.x
5654 8.0.x
5755
5856 # Build the project with defines
5957 - name : Build project
6058 run : |
61- dotnet build --configuration ${{ matrix.configuration }} --framework net8.0 -p:DefineConstants="${{ matrix.define }}"
59+ dotnet build src/Arch/Arch.csproj --configuration ${{ matrix.configuration }} --framework net8.0 -p:DefineConstants="${{ matrix.define }}"
6260
6361 # Run tests
6462 - name : Run tests
6563 run : |
66- dotnet test --configuration ${{ matrix.configuration }} --framework net8.0 -p:DefineConstants="${{ matrix.define }}"
64+ dotnet test src/Arch.Tests/Arch.Tests.csproj --configuration ${{ matrix.configuration }} --framework net8.0 -p:DefineConstants="${{ matrix.define }}"
6765
6866 - name : Upload dotnet test results
6967 uses : actions/upload-artifact@v4
@@ -90,20 +88,19 @@ jobs:
9088 uses : actions/setup-dotnet@v3
9189 with :
9290 dotnet-version : |
93- 3.1.x
94- 6.0.x
9591 8.0.x
9692
9793 - name : Restore dependencies
9894 run : dotnet restore
9995
10096 - name : Pack with DefineConstants=${{ matrix.define }}
10197 run : |
102- dotnet pack --no-build --configuration Release \
98+ dotnet pack src/Arch/Arch.csproj --no-build --configuration Release \
10399 --include-symbols --include-source \
104100 -p:PackageVersion=${{ github.event.inputs.version }} \
105101 -p:PackageReleaseNotes="${{ github.event.inputs.release_notes }}" \
106102 -p:DefineConstants="${{ matrix.define }}" \
103+ -p:PackageId=$(if $(matrix.define) == 'Default' 'Arch' else 'Arch-${{ matrix.define }}') \
107104 -o ./nupkg-${{ matrix.define }}
108105
109106 - name : Upload NuGet packages (nupkg + snupkg)
@@ -117,24 +114,30 @@ jobs:
117114 needs : pack
118115 if : github.event_name == 'workflow_dispatch' && github.event.inputs.deploy_to_nuget == 'yes'
119116 runs-on : ubuntu-latest
117+
118+ strategy :
119+ matrix :
120+ define : [Default, Events, PureECS]
121+
120122 steps :
121- - name : Download Artifact
123+ - name : Download Artifacts
122124 uses : actions/download-artifact@v4
123125 with :
124- name : nupkg
125126 path : ./nupkg
127+ pattern : nuget-*
128+ merge-multiple : true
126129
127130 - name : Push to NuGet
128131 run : |
129- dotnet nuget push "./nupkg/*.nupkg" \
132+ dotnet nuget push "./nupkg-${{ matrix.define }} /*.nupkg" \
130133 --api-key ${{ secrets.NUGET_API_KEY }} \
131134 --source https://api.nuget.org/v3/index.json \
132135 --skip-duplicate
133-
134- dotnet nuget push "./nupkg/*.snupkg" \
136+
137+ dotnet nuget push "./nupkg-${{ matrix.define }} /*.snupkg" \
135138 --api-key ${{ secrets.NUGET_API_KEY }} \
136139 --source https://api.nuget.org/v3/index.json \
137- --skip-duplicate
140+ --skip-duplicate
138141
139142 - name : Create GitHub Release
140143 uses : softprops/action-gh-release@v1
0 commit comments