build-fonts.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. name: Build Fonts
  2. on:
  3. push:
  4. branches:
  5. - master
  6. paths:
  7. - sources/**
  8. pull_request:
  9. branches:
  10. - master
  11. paths:
  12. - sources/**
  13. jobs:
  14. static-font-ci-job:
  15. runs-on: ubuntu-latest
  16. strategy:
  17. matrix:
  18. python-version: [ 3.8 ]
  19. name: Build Fonts
  20. steps:
  21. - name: Check out JetBrains Mono source repository
  22. uses: actions/checkout@v3
  23. - name: Set up Python v${{ matrix.python-version }} environment
  24. uses: actions/setup-python@v3
  25. with:
  26. python-version: ${{ matrix.python-version }}
  27. - name: Python build dependency cache lookup
  28. uses: actions/cache@v3
  29. with:
  30. path: ~/.cache/pip
  31. # Check for requirements file cache hit
  32. key: ${{ runner.os }}-pip-${{ hashFiles('${{ steps.config.outputs.dependpath }}') }}
  33. - name: Install Python build dependencies
  34. uses: py-actions/py-dependency-install@v3
  35. with:
  36. update-wheel: "true"
  37. update-setuptools: "true"
  38. - name: Build fonts
  39. run: |
  40. gftools builder sources/config.yaml
  41. python scripts/generate_variable_webfonts.py
  42. - name: Upload Fonts
  43. uses: actions/upload-artifact@v3
  44. with:
  45. name: Fonts
  46. path: fonts/