Add emoji fonts by AmberW #6
This file contains hidden or 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
| name: Build Emojis | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'src/emoji18/**' | |
| - 'src/emoji24/**' | |
| - 'scripts/**' | |
| - '.github/workflows/build-emojis.yml' | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - 'src/emoji18/**' | |
| - 'src/emoji24/**' | |
| - 'scripts/**' | |
| - '.github/workflows/build-emojis.yml' | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| cache: 'pip' | |
| cache-dependency-path: 'scripts/requirements.txt' | |
| - name: Install Dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r scripts/requirements.txt | |
| - name: Build All Assets | |
| run: python scripts/build.py | |
| - name: Verify binaries are up to date | |
| run: git diff --exit-code build/EMOJI18.pbf build/EMOJI24.pbf | |
| - name: Upload Compiled Emojis | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: compiled-emojis | |
| path: | | |
| build/EMOJI18.pbf | |
| build/EMOJI24.pbf |