Skip to content

Commit

Permalink
Only install fonts for Linux samples that require it
Browse files Browse the repository at this point in the history
  • Loading branch information
datalogics-saharay committed Mar 7, 2024
1 parent 5095443 commit 023e219
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/test-dotnet-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,16 @@ jobs:
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Setup Microsoft Core Fonts
working-directory: ${{ matrix.dir }}
run: |
sample_name=$(basename "$PWD")
if [ "${{ matrix.os }}" == 'ubuntu-latest' ]; then
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
sudo apt-get install ttf-mscorefonts-installer
fc-list
case "$sample_name" in "AddHeaderFooter" | "AddElements" | "MakeDocWithCalGrayColorSpace" | "MakeDocWithCalRGBColorSpace" | "MakeDocWithDeviceNColorSpace" | "MakeDocWithICCBasedColorSpace" | "MakeDocWithIndexedBasedColorSpace" | "MakeDocWithLabBasedColorSpace" | "MakeDocWithSeparationBasedColorSpace" | "ExtendedGraphicStates" | "AddGlyphs" | "AddUnicodeText")
echo 'ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true' | sudo debconf-set-selections
sudo apt-get install ttf-mscorefonts-installer
;;
esac
fi
- name: Build samples
working-directory: ${{ matrix.dir }}
Expand Down

0 comments on commit 023e219

Please sign in to comment.