build.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: Roboto
  2. on: [pull_request]
  3. jobs:
  4. build:
  5. name: Build Roboto
  6. runs-on: ubuntu-latest
  7. steps:
  8. - uses: actions/checkout@v2
  9. - name: Setup python
  10. uses: actions/setup-python@v1
  11. with:
  12. # TODO use build matrix?
  13. python-version: 3.8
  14. - name: Install dependencies
  15. run: |
  16. sudo apt install libharfbuzz-dev libharfbuzz-bin
  17. python -m pip install --upgrade pip
  18. pip install -r requirements.txt
  19. pip install .
  20. - name: Build fonts
  21. run: sh sources/build.sh
  22. - name: Test fonts
  23. run: |
  24. fontbakery check-profile tests/test_general.py fonts/unhinted/Roboto[ital,wdth,wght].ttf
  25. fontbakery check-profile tests/test_android.py fonts/android/Roboto[ital,wdth,wght].ttf
  26. fontbakery check-profile tests/test_web.py fonts/web/Roboto[ital,wdth,wght].ttf
  27. sh scripts/regression_test.sh
  28. - name: Upload
  29. uses: actions/upload-artifact@v2
  30. with:
  31. name: roboto_files
  32. path: |
  33. fonts/
  34. diffs/