-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev(compiler): new font distribute strategy (#362)
* dev(compiler): new font distribute strategy * build: update submodule index * fix(cli): specify cjk,emoji fonts
- Loading branch information
1 parent
aa86373
commit 59066c3
Showing
13 changed files
with
64 additions
and
34 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 |
---|---|---|
|
@@ -11,8 +11,10 @@ jobs: | |
ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download Repo | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Install Mold | ||
uses: rui314/setup-mold@v1 | ||
- name: Install Rust | ||
|
@@ -36,14 +38,6 @@ jobs: | |
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | bash | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
- name: Prepare fonts | ||
run: cargo run --profile release-ci --bin typst-ts-fontctl | ||
- name: Prepare assets | ||
run: | | ||
git clone https://github.com/Myriad-Dreamin/typst fuzzers/typst | ||
cd fuzzers/typst | ||
git reset --hard 20a988e48374675f7d0d05c4822cd297a3293f41 | ||
cp -r ./assets/files/ ../../assets/files/ | ||
- name: Fmt check | ||
run: cargo fmt --check --all | ||
- name: Clippy check | ||
|
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 |
---|---|---|
|
@@ -17,8 +17,10 @@ jobs: | |
packages: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup Docker buildx | ||
uses: docker/[email protected] | ||
|
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
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 |
---|---|---|
|
@@ -54,7 +54,10 @@ jobs: | |
env: | ||
target: ${{ matrix.platform }}-${{ matrix.arch }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
- name: rust toolchain | ||
|
@@ -104,7 +107,10 @@ jobs: | |
env: | ||
target: ${{ matrix.platform }}-${{ matrix.arch }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
target: ${{ matrix.rust-target }} | ||
|
@@ -187,7 +193,10 @@ jobs: | |
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/download-artifact@v2 | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,6 @@ | |
|
||
target/ | ||
out/ | ||
/assets/ | ||
/assets | ||
/assets/profile | ||
dist/ | ||
node_modules/ |
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,8 @@ | ||
[submodule "TypstFontAssets"] | ||
path = assets/fonts | ||
url = https://github.com/Myriad-Dreamin/typst.git | ||
branch = assets-fonts | ||
[submodule "TypstFileAssets"] | ||
path = assets/files | ||
url = https://github.com/Myriad-Dreamin/typst.git | ||
branch = assets-files |
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
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
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
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
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