-
Notifications
You must be signed in to change notification settings - Fork 8
feat(fonts): ship NV fonts and make Libron default #700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| name: Cache bundled fonts | ||
| description: > | ||
| Restore or save the assembled fonts/ directory. The cache key incorporates | ||
| pinned release versions from download_fonts.rs and the gitlink SHAs of the | ||
| Noto and Google font submodules so the key changes when any font source | ||
| moves. On cache miss, downloads fonts via cargo xtask download-fonts. | ||
|
|
||
| Defaults to restore-only. Pass `mode: save` in the cache-warmup job to | ||
| write a fresh cache. | ||
|
|
||
| inputs: | ||
| gh-token: | ||
| description: "GitHub token for downloading release assets" | ||
| required: true | ||
| mode: | ||
| description: "`restore` (default) or `save` (read-write)" | ||
| required: false | ||
| default: restore | ||
|
|
||
| outputs: | ||
| cache-hit: | ||
| description: "Whether a matching cache entry was found" | ||
| value: ${{ steps.save.outputs.cache-hit || steps.restore.outputs.cache-hit }} | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Compute font submodule hash | ||
| id: font-submodules | ||
| shell: bash | ||
| run: | | ||
| sha=$(git ls-tree HEAD thirdparty/noto-fonts thirdparty/google-fonts | sha256sum | cut -c1-12) | ||
| echo "hash=$sha" >> "$GITHUB_OUTPUT" | ||
|
|
||
| - name: Restore bundled fonts cache | ||
| if: inputs.mode == 'restore' | ||
| id: restore | ||
| uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | ||
| with: | ||
| path: fonts/ | ||
| key: fonts-${{ hashFiles('xtask/src/tasks/download_fonts/**') }}-${{ steps.font-submodules.outputs.hash }} | ||
|
|
||
| - name: Save bundled fonts cache | ||
| if: inputs.mode == 'save' | ||
| id: save | ||
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | ||
| with: | ||
| path: fonts/ | ||
| key: fonts-${{ hashFiles('xtask/src/tasks/download_fonts/**') }}-${{ steps.font-submodules.outputs.hash }} | ||
|
|
||
| - name: Download bundled fonts | ||
| if: steps.restore.outputs.cache-hit != 'true' && steps.save.outputs.cache-hit != 'true' | ||
| shell: bash | ||
| env: | ||
| GH_TOKEN: ${{ inputs.gh-token }} | ||
| run: cargo xtask download-fonts |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,7 @@ | |
| /css/*-user.css | ||
| /hyphenation-patterns | ||
| /dictionaries | ||
| /fonts | ||
| /dist | ||
| /bundle | ||
| docs/book/ | ||
|
|
||
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.