@@ -56,30 +56,24 @@ jobs:
5656 dotnet-version : |
5757 8.0.x
5858
59+ # Create config (Release-Events, Debug, ...)
60+ - name : Create CONFIG for build
61+ run : |
62+ if [ "${{ matrix.define }}" = "Default" ]; then
63+ echo "CONFIG=${{ matrix.configuration }}" >> $GITHUB_ENV
64+ else
65+ echo "CONFIG=${{ matrix.configuration }}-${{ matrix.define }}" >> $GITHUB_ENV
66+ fi
67+
5968 # Build the project with defines
6069 - name : Build project
6170 run : |
62-
63- # Create the config name
64- CONFIG="${{ matrix.configuration }}"
65- if [ "${{ matrix.define }}" != "Default" ]; then
66- CONFIG="${CONFIG}-${{ matrix.define }}"
67- fi
68-
69- echo "Building with Configuration=${CONFIG}"
70- dotnet build src/Arch/Arch.csproj --configuration "$CONFIG"
71+ dotnet build src/Arch/Arch.csproj --configuration $CONFIG
7172
7273 # Run tests
7374 - name : Run tests
7475 run : |
75-
76- # Create the config name
77- CONFIG="${{ matrix.configuration }}"
78- if [ "${{ matrix.define }}" != "Default" ]; then
79- CONFIG="${CONFIG}-${{ matrix.define }}"
80- fi
81-
82- dotnet test src/Arch.Tests/Arch.Tests.csproj --configuration "$CONFIG" --logger trx --results-directory "TestResults"
76+ dotnet test src/Arch.Tests/Arch.Tests.csproj --configuration $CONFIG --logger trx --results-directory "TestResults"
8377
8478 # Upload test results
8579 - name : Upload dotnet test results
9488 - name : Upload build output for Unity & NuGet
9589 uses : actions/upload-artifact@v4
9690 with :
97- name : build-output-${{ matrix.configuration }}-${{ matrix.define }}
91+ name : build-output-${{ env.CONFIG }}
9892 path : |
99- src/Arch/bin/${{ matrix.configuration }}/
93+ src/Arch/bin/${{ env.CONFIG }}/
10094
10195 # Packing nugets
10296 pack :
@@ -119,12 +113,21 @@ jobs:
119113 dotnet-version : |
120114 8.0.x
121115
116+ # Create config (Release-Events, Debug, ...)
117+ - name : Create CONFIG for build
118+ run : |
119+ if [ "${{ matrix.define }}" = "Default" ]; then
120+ echo "CONFIG=Release" >> $GITHUB_ENV
121+ else
122+ echo "CONFIG=Release-${{ matrix.define }}" >> $GITHUB_ENV
123+ fi
124+
122125 # Download build output from build stage
123126 - name : Download build output
124127 uses : actions/download-artifact@v4
125128 with :
126- name : build-output-Release- ${{ matrix.define }}
127- path : src/Arch/bin/Release /
129+ name : build-output-${{ env.CONFIG }}
130+ path : src/Arch/bin/${{ env.CONFIG }} /
128131
129132 # Restore
130133 - name : Restore dependencies
0 commit comments