diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 25537afcc..653c474a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -154,6 +154,12 @@ jobs: os: ${{ fromJson(needs.setup-os-matrix.outputs.os) }} library: [ILGPU, ILGPU.Algorithms] framework: [net6.0, net7.0] + flavor: [CPU, Velocity] + exclude: + - library: ILGPU.Algorithms + flavor: Velocity + - os: cuda + flavor: Velocity fail-fast: false runs-on: ${{ matrix.os }} steps: @@ -174,7 +180,7 @@ jobs: - name: Set test flavor id: test-flavor shell: bash - run: echo "flavor=$([[ "${{ matrix.os }}" == cuda ]] && echo "Cuda" || echo "CPU")" >> $GITHUB_OUTPUT + run: echo "flavor=$([[ "${{ matrix.os }}" == cuda ]] && echo "Cuda" || echo "${{ matrix.flavor }}")" >> $GITHUB_OUTPUT - name: Build and test run: dotnet test Src/${{ matrix.library }}.Tests.${{ steps.test-flavor.outputs.flavor }} --configuration=Release --framework=${{ matrix.framework }} -p:TreatWarningsAsErrors=true diff --git a/Src/ILGPU.Tests.Velocity/ILGPU.Tests.Velocity.csproj b/Src/ILGPU.Tests.Velocity/ILGPU.Tests.Velocity.csproj index b6f4fb3af..34a741884 100644 --- a/Src/ILGPU.Tests.Velocity/ILGPU.Tests.Velocity.csproj +++ b/Src/ILGPU.Tests.Velocity/ILGPU.Tests.Velocity.csproj @@ -45,6 +45,10 @@ + + + + True