Skip to content

Commit

Permalink
Install Microsoft Core fonts on Linux for samples that require it
Browse files Browse the repository at this point in the history
  • Loading branch information
datalogics-saharay committed Mar 6, 2024
1 parent 0dcb5db commit dd4b798
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/test-dotnet-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
matrix:
os: [windows-latest, ubuntu-latest, macos-14]
# TODO: AddHeaderFooter won't run due to Times-Roman font not present on runner.
# TODO: Some of the ContentCreation samples require Microsoft Core Fonts to be installed on Linux.
# TODO: Some of the ContentCreation and Text samples require Microsoft Core Fonts to be installed on Linux.
# TODO: Factur-XConverter sample needs input PDF specified as command-line argument.
# TODO: ZUGFeRDConverter sample requires that input PDF and an input ZUGFeRD Invoice XML file be provided as command-line arguments.
# TODO: DocToImages sample requires input PDF as command line argument.
Expand All @@ -30,7 +30,7 @@ jobs:
'Annotations/PolygonAnnotations/',
'Annotations/PolyLineAnnotations/',
'ContentCreation/AddElements/',
#'ContentCreation/AddHeaderFooter/',
'ContentCreation/AddHeaderFooter/',
'ContentCreation/Clips/',
'ContentCreation/CreateBookmarks/',
'ContentCreation/GradientShade/',
Expand Down Expand Up @@ -61,10 +61,10 @@ jobs:
'DocumentConversion/ColorConvertDocument/',
'DocumentConversion/ConvertToOffice/',
'DocumentConversion/CreateDocFromXPS/',
'DocumentConversion/Factur-XConverter/',
#'DocumentConversion/Factur-XConverter/',
'DocumentConversion/PDFAConverter/',
'DocumentConversion/PDFXConverter/',
'DocumentConversion/ZUGFeRDConverter/',
#'DocumentConversion/ZUGFeRDConverter/',
'DocumentOptimization/PDFOptimize/',
#'Images/DocToImages/',
'Images/DrawSeparations/',
Expand Down Expand Up @@ -113,6 +113,11 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Setup Microsoft Core Fonts
run: |
if [ "${{ matrix.os }}" == 'ubuntu-latest' ]; then
sudo apt install ttf-mscorefonts-installer
fi
- name: Build samples
working-directory: ${{ matrix.dir }}
run: |
Expand Down

0 comments on commit dd4b798

Please sign in to comment.