Skip to content

Commit

Permalink
Add logic to prevent running the ConvertToOffice sample on Mac
Browse files Browse the repository at this point in the history
- The Office conversion API is not implemented on Mac platforms, so
  let's add some logic to prevent building and running the
  ConvertToOffice sample on Mac.
  • Loading branch information
datalogics-saharay committed Mar 1, 2024
1 parent 643e7be commit c291a82
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/test-dotnet-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,24 @@ jobs:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Build samples
working-directory: ${{ matrix.dir }}
run: dotnet build -c Release *.csproj
run: |
dll_name=$(basename "$PWD")
if [ "$dll_name" != "ConvertToOffice" ] && [ "${{ matrix.os }}" != 'macos-14' ]; then
dotnet build -c Release *.csproj
else
echo "Not available on this os"
fi
- name: List files
run: |
ls ${{matrix.dir}}
- name: Run samples
working-directory: ${{matrix.dir}}
run: |
dll_name=$(basename "$PWD")
dotnet bin/Release/net6.0/$dll_name.dll
if [ "$dll_name" != "ConvertToOffice" ] && [ "${{ matrix.os }}" != 'macos-14' ]; then
dotnet bin/Release/net6.0/$dll_name.dll
else
echo "Not available on this os"
fi

0 comments on commit c291a82

Please sign in to comment.