diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 534ccfb41..5b75874ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -116,7 +116,7 @@ jobs: ) ) && os+=("macos-latest") - [ "${{ steps.is-fork.outputs.fork }}" == "false" ] && os+=("cuda-${{ github.run_id }}-${{ github.run_attempt }}") + [ "${{ steps.is-fork.outputs.fork }}" == "false" ] && os+=("cuda") echo "os=$(jq -cn '$ARGS.positional' --args ${os[@]})" >> $GITHUB_OUTPUT outputs: @@ -162,7 +162,7 @@ jobs: library: ILGPU.Algorithms framework: net471 fail-fast: false - runs-on: ${{ contains(matrix.os, 'cuda') && format('{0}-{1}-{2}', matrix.os, matrix.library, matrix.framework) || matrix.os }} + runs-on: ${{ matrix.os }} steps: - name: Checkout uses: actions/checkout@v3 @@ -170,38 +170,30 @@ jobs: - name: Setup the latest .NET Core 3.1 SDK if: matrix.framework == 'netcoreapp3.1' uses: actions/setup-dotnet@v3.2.0 - env: - DOTNET_INSTALL_DIR: ${{ matrix.framework == 'cuda' && '~/.' }} with: dotnet-version: 3.1.x - name: Setup the latest .NET 5 SDK if: matrix.framework == 'net5.0' uses: actions/setup-dotnet@v3.2.0 - env: - DOTNET_INSTALL_DIR: ${{ matrix.framework == 'cuda' && '~/.' }} with: dotnet-version: 5.0.x - name: Setup the latest .NET 6 SDK if: matrix.framework == 'net6.0' uses: actions/setup-dotnet@v3.2.0 - env: - DOTNET_INSTALL_DIR: ${{ matrix.framework == 'cuda' && '~/.' }} with: dotnet-version: 6.0.x - name: Setup the latest .NET 7 SDK uses: actions/setup-dotnet@v3.2.0 - env: - DOTNET_INSTALL_DIR: ${{ matrix.framework == 'cuda' && '~/.' }} with: dotnet-version: 7.0.x - 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 "CPU")" >> $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