-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add script to bootstrap GitHub action - Build fonts - Upload directory with built fonts as artifacts Signed-off-by: Matej Focko <[email protected]>
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Build Fira Code | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Build | ||
steps: | ||
- name: Checkout the latest commit | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: bash -ex ./script/bootstrap_action | ||
- name: Build fonts | ||
run: bash -e ./script/build | ||
- name: Upload built fonts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Fira_Code | ||
path: distr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#! /bin/bash -ex | ||
|
||
sudo apt update | ||
sudo apt install -y python3.8 python3-setuptools python3.8-dev pkg-config zlib1g ttfautohint woff2 sfnt2woff-zopfli | ||
|
||
sudo python3.8 -m easy_install pip | ||
python3.8 -m pip install virtualenv --user | ||
python3.8 -m virtualenv venv | ||
source venv/bin/activate | ||
|
||
# https://github.com/googlefonts/gftools/issues/121 | ||
python3.8 -m pip install -U Pillow==5.4.1 idna==2.8 requests==2.21.0 urllib3==1.24.1 | ||
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig" | ||
python3.8 -m pip install pycairo | ||
python3.8 -m pip install git+https://github.com/googlefonts/gftools | ||
|
||
python3.8 -m pip install fontmake | ||
python3.8 -m pip install fontbakery |