From 593a3049419b647b45924d6c6e0b3da77ee11812 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 9 Nov 2022 17:43:44 +0100 Subject: [PATCH] Combine dotnet build and run for CI samples --- .github/workflows/dotnet.yml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 61f57126..e5fc083e 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -136,23 +136,20 @@ jobs: steps: - name: Git checkout uses: actions/checkout@v3 - - name: Build ComputeSharp.Sample - run: dotnet build samples\ComputeSharp.Sample\ComputeSharp.Sample.csproj -c Release -f ${{matrix.framework}} -r win-x64 --no-self-contained -p:Platform=x64 -v n + - name: Build and run ComputeSharp.Sample + run: > + dotnet build samples\ComputeSharp.Sample\ComputeSharp.Sample.csproj -c Release -f ${{matrix.framework}} -r win-x64 --no-self-contained -p:Platform=x64 -v n; + samples\ComputeSharp.Sample\bin\x64\Release\${{matrix.framework}}\win-x64\ComputeSharp.Sample.exe shell: cmd - - name: Run ComputeSharp.Sample - run: samples\ComputeSharp.Sample\bin\x64\Release\${{matrix.framework}}\win-x64\ComputeSharp.Sample.exe + - name: Build and run ComputeSharp.Sample.FSharp + run: > + dotnet build samples\ComputeSharp.Sample.FSharp\ComputeSharp.Sample.FSharp.fsproj -c Release -f ${{matrix.framework}} -r win-x64 --no-self-contained -p:Platform=x64 -v n; + ${{matrix.command}} samples\ComputeSharp.Sample.FSharp\bin\x64\Release\${{matrix.framework}}\win-x64\ComputeSharp.Sample.FSharp.exe shell: cmd - - name: Build ComputeSharp.Sample.FSharp - run: dotnet build samples\ComputeSharp.Sample.FSharp\ComputeSharp.Sample.FSharp.fsproj -c Release -f ${{matrix.framework}} -r win-x64 --no-self-contained -p:Platform=x64 -v n - shell: cmd - - name: Run ComputeSharp.Sample.FSharp - run: ${{matrix.command}} samples\ComputeSharp.Sample.FSharp\bin\x64\Release\${{matrix.framework}}\win-x64\ComputeSharp.Sample.FSharp.exe - shell: cmd - - name: Build ComputeSharp.ImageProcessing.csproj - run: dotnet build samples\ComputeSharp.ImageProcessing\ComputeSharp.ImageProcessing.csproj -c Release -f ${{matrix.framework}} -r win-x64 --no-self-contained -p:Platform=x64 -v n - shell: cmd - - name: Run ComputeSharp.ImageProcessing.csproj - run: ${{matrix.command}} samples\ComputeSharp.ImageProcessing\bin\x64\Release\${{matrix.framework}}\win-x64\ComputeSharp.ImageProcessing.exe + - name: Build and run ComputeSharp.ImageProcessing.csproj + run: > + dotnet build samples\ComputeSharp.ImageProcessing\ComputeSharp.ImageProcessing.csproj -c Release -f ${{matrix.framework}} -r win-x64 --no-self-contained -p:Platform=x64 -v n; + ${{matrix.command}} samples\ComputeSharp.ImageProcessing\bin\x64\Release\${{matrix.framework}}\win-x64\ComputeSharp.ImageProcessing.exe shell: cmd # Download the NuGet packages generated in the previous job and use them