dev: update nightly (#1977)

+ several fixes to `nightly.yml`
+ update `comemo` for typst/typst#6683
This commit is contained in:
ParaN3xus 2025-08-04 04:22:47 +08:00 committed by GitHub
parent 756c3cc0ac
commit cf925d0a2a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 72 additions and 57 deletions

View file

@ -41,11 +41,6 @@ jobs:
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y jq --no-install-recommends
- name: Determine release type
id: release_type
run: |
@ -68,7 +63,8 @@ jobs:
eval "$(node $GITHUB_WORKSPACE/scripts/nightly-utils.mjs . get-current-revs)"
# Get latest revs
latest_typst_rev=$(curl -s "https://api.github.com/repos/ParaN3xus/typst/commits/nightly-content-hint" | jq -r '.sha')
latest_typst_rev=$(curl -s "https://api.github.com/repos/ParaN3xus/typst/commits/nightly" | jq -r '.sha')
latest_typst_content_hint_rev=$(curl -s "https://api.github.com/repos/ParaN3xus/typst/commits/nightly-content-hint" | jq -r '.sha')
latest_reflexo_rev=$(curl -s "https://api.github.com/repos/ParaN3xus/typst.ts/commits/nightly" | jq -r '.sha')
latest_typstyle_rev=$(curl -s "https://api.github.com/repos/ParaN3xus/typstyle/commits/nightly" | jq -r '.sha')
latest_typst_ansi_hl_rev=$(curl -s "https://api.github.com/repos/ParaN3xus/typst-ansi-hl/commits/nightly" | jq -r '.sha')
@ -124,6 +120,7 @@ jobs:
echo "need_release=$need_release" >> $GITHUB_OUTPUT
echo "latest_typst_rev=$latest_typst_rev" >> $GITHUB_ENV
echo "latest_typst_content_hint_rev=$latest_typst_content_hint_rev" >> $GITHUB_ENV
- name: Calculate new version
id: version
@ -138,6 +135,7 @@ jobs:
echo "new_version=$new_version" >> $GITHUB_ENV
- uses: actions-rust-lang/setup-rust-toolchain@v1
if: steps.check_updates.outputs.need_release == 'true'
- name: Get typst information
id: typst_info
@ -179,10 +177,10 @@ jobs:
)
node $GITHUB_WORKSPACE/scripts/nightly-utils.mjs . update-patch-revs "$revs_json"
- name: Update world crates version
- name: Bump world crates version
if: steps.check_updates.outputs.need_release == 'true'
run: |
node $GITHUB_WORKSPACE/scripts/nightly-utils.mjs . bump-world-crates "$new_version"
# node $GITHUB_WORKSPACE/scripts/nightly-utils.mjs . bump-world-crates "$new_version"
cargo update
git add -A
@ -202,7 +200,7 @@ jobs:
new_version="$new_version"
node $GITHUB_WORKSPACE/scripts/nightly-utils.mjs . update-world-crates "$new_version"
# node $GITHUB_WORKSPACE/scripts/nightly-utils.mjs . update-world-crates "$new_version"
# Update typst dependencies
node $GITHUB_WORKSPACE/scripts/nightly-utils.mjs . update-typst-deps \
@ -213,7 +211,7 @@ jobs:
revs_json=$(cat <<EOF
{
"tinymist": "${world_commit}",
"typst": "${latest_typst_rev}"
"typst": "${latest_typst_content_hint_rev}"
}
EOF
)
@ -235,7 +233,7 @@ jobs:
cd /tmp/typstyle
git checkout nightly
node $GITHUB_WORKSPACE/scripts/nightly-utils.mjs . update-world-crates "$new_version"
# node $GITHUB_WORKSPACE/scripts/nightly-utils.mjs . update-world-crates "$new_version"
node $GITHUB_WORKSPACE/scripts/nightly-utils.mjs . update-typst-deps \
"$typst_version" \
"$typst_assets_rev"
@ -332,10 +330,17 @@ jobs:
cargo update
git add -A
git commit -m "build: bump version to ${new_version}"
bump_commit=$(git rev-parse HEAD)
git tag "v${new_version}"
git push origin nightly
git push origin "v${new_version}"
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.NIGHTLY_REPO_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${{ github.repository }}/git/refs \
-d "{\"ref\":\"refs/tags/v${new_version}\",\"sha\":\"${bump_commit}\"}"
echo "Successfully released tinymist ${new_version}!"

64
Cargo.lock generated
View file

@ -649,21 +649,22 @@ checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
[[package]]
name = "comemo"
version = "0.4.0"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "df6916408a724339aa77b18214233355f3eb04c42eb895e5f8909215bd8a7a91"
checksum = "649d7b2d867b569729c03c0f6968db10bc95921182a1f2b2012b1b549492f39d"
dependencies = [
"comemo-macros",
"once_cell",
"parking_lot",
"rustc-hash 2.1.1",
"siphasher",
"slab",
]
[[package]]
name = "comemo-macros"
version = "0.4.0"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c8936e42f9b4f5bdfaf23700609ac1f11cb03ad4c1ec128a4ee4fd0903e228db"
checksum = "51c87fc7e85487493ddedae1a3a34b897c77ad8825375b79265a8a162c28d535"
dependencies = [
"proc-macro2",
"quote",
@ -2397,14 +2398,13 @@ dependencies = [
[[package]]
name = "krilla"
version = "0.4.0"
source = "git+https://github.com/LaurenzV/krilla?rev=37b9a00#37b9a00bfac87ed0b347b7cf8e9d37a6f68fcccd"
source = "git+https://github.com/LaurenzV/krilla?rev=abdf031#abdf031c9e5ba89d606f6f145fad648c75812aec"
dependencies = [
"base64",
"bumpalo",
"comemo",
"flate2",
"float-cmp 0.10.0",
"fxhash",
"gif",
"hayro-write",
"image-webp 0.2.3",
@ -2413,6 +2413,7 @@ dependencies = [
"pdf-writer",
"png",
"rayon",
"rustc-hash 2.1.1",
"rustybuzz 0.20.1",
"siphasher",
"skrifa",
@ -2427,7 +2428,7 @@ dependencies = [
[[package]]
name = "krilla-svg"
version = "0.1.0"
source = "git+https://github.com/LaurenzV/krilla?rev=37b9a00#37b9a00bfac87ed0b347b7cf8e9d37a6f68fcccd"
source = "git+https://github.com/LaurenzV/krilla?rev=abdf031#abdf031c9e5ba89d606f6f145fad648c75812aec"
dependencies = [
"flate2",
"fontdb 0.23.0",
@ -3334,7 +3335,7 @@ dependencies = [
[[package]]
name = "reflexo"
version = "0.6.1-rc2"
source = "git+https://github.com/ParaN3xus/typst.ts/?rev=3b1ae0adc7f35785e6d60e7fc36141dc14b9e850#3b1ae0adc7f35785e6d60e7fc36141dc14b9e850"
source = "git+https://github.com/ParaN3xus/typst.ts/?branch=nightly#62c42fe7fdbf817d366dfaa9933784f0332a4f67"
dependencies = [
"base64",
"bitvec",
@ -3360,7 +3361,7 @@ dependencies = [
[[package]]
name = "reflexo-typst"
version = "0.6.1-rc2"
source = "git+https://github.com/ParaN3xus/typst.ts/?rev=3b1ae0adc7f35785e6d60e7fc36141dc14b9e850#3b1ae0adc7f35785e6d60e7fc36141dc14b9e850"
source = "git+https://github.com/ParaN3xus/typst.ts/?branch=nightly#62c42fe7fdbf817d366dfaa9933784f0332a4f67"
dependencies = [
"codespan-reporting",
"comemo",
@ -3392,7 +3393,7 @@ dependencies = [
[[package]]
name = "reflexo-typst2vec"
version = "0.6.1-rc2"
source = "git+https://github.com/ParaN3xus/typst.ts/?rev=3b1ae0adc7f35785e6d60e7fc36141dc14b9e850#3b1ae0adc7f35785e6d60e7fc36141dc14b9e850"
source = "git+https://github.com/ParaN3xus/typst.ts/?branch=nightly#62c42fe7fdbf817d366dfaa9933784f0332a4f67"
dependencies = [
"bitvec",
"comemo",
@ -3420,7 +3421,7 @@ dependencies = [
[[package]]
name = "reflexo-vec2svg"
version = "0.6.1-rc2"
source = "git+https://github.com/ParaN3xus/typst.ts/?rev=3b1ae0adc7f35785e6d60e7fc36141dc14b9e850#3b1ae0adc7f35785e6d60e7fc36141dc14b9e850"
source = "git+https://github.com/ParaN3xus/typst.ts/?branch=nightly#62c42fe7fdbf817d366dfaa9933784f0332a4f67"
dependencies = [
"base64",
"comemo",
@ -5272,10 +5273,11 @@ dependencies = [
[[package]]
name = "typst"
version = "0.14.0"
source = "git+https://github.com/Myriad-Dreamin/typst.git?rev=6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277#6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277"
source = "git+https://github.com/ParaN3xus/typst.git?branch=nightly#6a81e781b9e19fcec4a02a1d18d68d7dd1474444"
dependencies = [
"comemo",
"ecow",
"rustc-hash 2.1.1",
"typst-eval",
"typst-html",
"typst-layout",
@ -5290,7 +5292,7 @@ dependencies = [
[[package]]
name = "typst-ansi-hl"
version = "0.4.0"
source = "git+https://github.com/ParaN3xus/typst-ansi-hl.git?rev=9e449696f5da46f4e911733d8a70ecc1e2f72324#9e449696f5da46f4e911733d8a70ecc1e2f72324"
source = "git+https://github.com/ParaN3xus/typst-ansi-hl.git?branch=nightly#76546f137f13f585ee81548ebfda8a5a9be0546b"
dependencies = [
"ansi_colours",
"syntect",
@ -5308,11 +5310,12 @@ source = "git+https://github.com/typst/typst-assets?rev=fbf00f9#fbf00f9539fdb082
[[package]]
name = "typst-eval"
version = "0.14.0"
source = "git+https://github.com/Myriad-Dreamin/typst.git?rev=6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277#6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277"
source = "git+https://github.com/ParaN3xus/typst.git?branch=nightly#6a81e781b9e19fcec4a02a1d18d68d7dd1474444"
dependencies = [
"comemo",
"ecow",
"indexmap 2.10.0",
"rustc-hash 2.1.1",
"stacker",
"toml",
"typst-library",
@ -5326,12 +5329,13 @@ dependencies = [
[[package]]
name = "typst-html"
version = "0.14.0"
source = "git+https://github.com/Myriad-Dreamin/typst.git?rev=6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277#6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277"
source = "git+https://github.com/ParaN3xus/typst.git?branch=nightly#6a81e781b9e19fcec4a02a1d18d68d7dd1474444"
dependencies = [
"bumpalo",
"comemo",
"ecow",
"palette",
"rustc-hash 2.1.1",
"time",
"typst-assets",
"typst-library",
@ -5345,7 +5349,7 @@ dependencies = [
[[package]]
name = "typst-layout"
version = "0.14.0"
source = "git+https://github.com/Myriad-Dreamin/typst.git?rev=6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277#6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277"
source = "git+https://github.com/ParaN3xus/typst.git?branch=nightly#6a81e781b9e19fcec4a02a1d18d68d7dd1474444"
dependencies = [
"az",
"bumpalo",
@ -5360,6 +5364,7 @@ dependencies = [
"icu_segmenter",
"kurbo",
"memchr",
"rustc-hash 2.1.1",
"rustybuzz 0.20.1",
"smallvec",
"ttf-parser 0.25.1",
@ -5378,7 +5383,7 @@ dependencies = [
[[package]]
name = "typst-library"
version = "0.14.0"
source = "git+https://github.com/Myriad-Dreamin/typst.git?rev=6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277#6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277"
source = "git+https://github.com/ParaN3xus/typst.git?branch=nightly#6a81e781b9e19fcec4a02a1d18d68d7dd1474444"
dependencies = [
"az",
"bitflags 2.9.1",
@ -5412,6 +5417,7 @@ dependencies = [
"regex-syntax",
"roxmltree",
"rust_decimal",
"rustc-hash 2.1.1",
"rustybuzz 0.20.1",
"serde",
"serde_json",
@ -5442,7 +5448,7 @@ dependencies = [
[[package]]
name = "typst-macros"
version = "0.14.0"
source = "git+https://github.com/Myriad-Dreamin/typst.git?rev=6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277#6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277"
source = "git+https://github.com/ParaN3xus/typst.git?branch=nightly#6a81e781b9e19fcec4a02a1d18d68d7dd1474444"
dependencies = [
"heck",
"proc-macro2",
@ -5453,7 +5459,7 @@ dependencies = [
[[package]]
name = "typst-pdf"
version = "0.14.0"
source = "git+https://github.com/Myriad-Dreamin/typst.git?rev=6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277#6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277"
source = "git+https://github.com/ParaN3xus/typst.git?branch=nightly#6a81e781b9e19fcec4a02a1d18d68d7dd1474444"
dependencies = [
"bytemuck",
"comemo",
@ -5462,6 +5468,7 @@ dependencies = [
"infer",
"krilla",
"krilla-svg",
"rustc-hash 2.1.1",
"serde",
"typst-assets",
"typst-library",
@ -5474,7 +5481,7 @@ dependencies = [
[[package]]
name = "typst-realize"
version = "0.14.0"
source = "git+https://github.com/Myriad-Dreamin/typst.git?rev=6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277#6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277"
source = "git+https://github.com/ParaN3xus/typst.git?branch=nightly#6a81e781b9e19fcec4a02a1d18d68d7dd1474444"
dependencies = [
"arrayvec",
"bumpalo",
@ -5491,7 +5498,7 @@ dependencies = [
[[package]]
name = "typst-render"
version = "0.14.0"
source = "git+https://github.com/Myriad-Dreamin/typst.git?rev=6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277#6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277"
source = "git+https://github.com/ParaN3xus/typst.git?branch=nightly#6a81e781b9e19fcec4a02a1d18d68d7dd1474444"
dependencies = [
"bytemuck",
"comemo",
@ -5521,7 +5528,7 @@ dependencies = [
[[package]]
name = "typst-svg"
version = "0.14.0"
source = "git+https://github.com/Myriad-Dreamin/typst.git?rev=6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277#6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277"
source = "git+https://github.com/ParaN3xus/typst.git?branch=nightly#6a81e781b9e19fcec4a02a1d18d68d7dd1474444"
dependencies = [
"base64",
"comemo",
@ -5529,6 +5536,7 @@ dependencies = [
"flate2",
"hayro",
"image",
"rustc-hash 2.1.1",
"ttf-parser 0.25.1",
"typst-assets",
"typst-library",
@ -5560,9 +5568,10 @@ dependencies = [
[[package]]
name = "typst-syntax"
version = "0.14.0"
source = "git+https://github.com/Myriad-Dreamin/typst.git?rev=6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277#6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277"
source = "git+https://github.com/ParaN3xus/typst.git?branch=nightly#6a81e781b9e19fcec4a02a1d18d68d7dd1474444"
dependencies = [
"ecow",
"rustc-hash 2.1.1",
"serde",
"toml",
"typst-timing 0.14.0",
@ -5588,7 +5597,7 @@ dependencies = [
[[package]]
name = "typst-timing"
version = "0.14.0"
source = "git+https://github.com/Myriad-Dreamin/typst.git?rev=6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277#6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277"
source = "git+https://github.com/ParaN3xus/typst.git?branch=nightly#6a81e781b9e19fcec4a02a1d18d68d7dd1474444"
dependencies = [
"parking_lot",
"serde",
@ -5612,11 +5621,12 @@ dependencies = [
[[package]]
name = "typst-utils"
version = "0.14.0"
source = "git+https://github.com/Myriad-Dreamin/typst.git?rev=6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277#6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277"
source = "git+https://github.com/ParaN3xus/typst.git?branch=nightly#6a81e781b9e19fcec4a02a1d18d68d7dd1474444"
dependencies = [
"once_cell",
"portable-atomic",
"rayon",
"rustc-hash 2.1.1",
"siphasher",
"thin-vec",
"unicode-math-class",
@ -5640,7 +5650,7 @@ dependencies = [
[[package]]
name = "typstyle-core"
version = "0.13.16"
source = "git+https://github.com/ParaN3xus/typstyle/?rev=86cb05a5c26264baebc0e78bfd40513b477c9538#86cb05a5c26264baebc0e78bfd40513b477c9538"
source = "git+https://github.com/ParaN3xus/typstyle/?branch=nightly#46102a2bcab7e4b49bacaae6d99f0dd5615559dc"
dependencies = [
"ecow",
"itertools 0.14.0",

View file

@ -84,7 +84,7 @@ fastrand = "2.3.0"
# Data Structures
bitvec = "1"
comemo = "0.4"
comemo = "0.5.0"
# We need to freeze the version of the crate, as the raw-api feature is considered unstable
dashmap = { version = "=5.5.3", features = ["raw-api"] }
ecow = "0.2.3"
@ -264,21 +264,21 @@ ignore-hidden = false
extend-exclude = ["/.git", "fixtures"]
[patch.crates-io]
typst = { git = "https://github.com/Myriad-Dreamin/typst.git", rev = "6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277" }
typst-macros = { git = "https://github.com/Myriad-Dreamin/typst.git", rev = "6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277" }
typst-library = { git = "https://github.com/Myriad-Dreamin/typst.git", rev = "6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277" }
typst-html = { git = "https://github.com/Myriad-Dreamin/typst.git", rev = "6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277" }
typst-timing = { git = "https://github.com/Myriad-Dreamin/typst.git", rev = "6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277" }
typst-svg = { git = "https://github.com/Myriad-Dreamin/typst.git", rev = "6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277" }
typst-render = { git = "https://github.com/Myriad-Dreamin/typst.git", rev = "6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277" }
typst-pdf = { git = "https://github.com/Myriad-Dreamin/typst.git", rev = "6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277" }
typst-syntax = { git = "https://github.com/Myriad-Dreamin/typst.git", rev = "6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277" }
typst-eval = { git = "https://github.com/Myriad-Dreamin/typst.git", rev = "6bc6cf6ec210c60c3e7ff25f84cf43aa1de0a277" }
typst-ansi-hl = { git = "https://github.com/ParaN3xus/typst-ansi-hl.git", rev = "9e449696f5da46f4e911733d8a70ecc1e2f72324" }
typstyle-core = { git = "https://github.com/ParaN3xus/typstyle/", rev = "86cb05a5c26264baebc0e78bfd40513b477c9538" }
reflexo = { git = "https://github.com/ParaN3xus/typst.ts/", rev = "3b1ae0adc7f35785e6d60e7fc36141dc14b9e850" }
reflexo-typst = { git = "https://github.com/ParaN3xus/typst.ts/", rev = "3b1ae0adc7f35785e6d60e7fc36141dc14b9e850" }
reflexo-vec2svg = { git = "https://github.com/ParaN3xus/typst.ts/", rev = "3b1ae0adc7f35785e6d60e7fc36141dc14b9e850" }
typst = { git = "https://github.com/ParaN3xus/typst.git", branch = "nightly" }
typst-macros = { git = "https://github.com/ParaN3xus/typst.git", branch = "nightly" }
typst-library = { git = "https://github.com/ParaN3xus/typst.git", branch = "nightly" }
typst-html = { git = "https://github.com/ParaN3xus/typst.git", branch = "nightly" }
typst-timing = { git = "https://github.com/ParaN3xus/typst.git", branch = "nightly" }
typst-svg = { git = "https://github.com/ParaN3xus/typst.git", branch = "nightly" }
typst-render = { git = "https://github.com/ParaN3xus/typst.git", branch = "nightly" }
typst-pdf = { git = "https://github.com/ParaN3xus/typst.git", branch = "nightly" }
typst-syntax = { git = "https://github.com/ParaN3xus/typst.git", branch = "nightly" }
typst-eval = { git = "https://github.com/ParaN3xus/typst.git", branch = "nightly" }
typst-ansi-hl = { git = "https://github.com/ParaN3xus/typst-ansi-hl.git", branch = "nightly" }
typstyle-core = { git = "https://github.com/ParaN3xus/typstyle/", branch = "nightly" }
reflexo = { git = "https://github.com/ParaN3xus/typst.ts/", branch = "nightly" }
reflexo-typst = { git = "https://github.com/ParaN3xus/typst.ts/", branch = "nightly" }
reflexo-vec2svg = { git = "https://github.com/ParaN3xus/typst.ts/", branch = "nightly" }
# These patches use local `reflexo` for development.
# reflexo = { path = "../typst.ts/crates/reflexo/" }

View file

@ -786,7 +786,6 @@ mod tests {
https://typst.app/docs/reference/math/primes/
https://typst.app/docs/reference/math/roots/#functions-root
https://typst.app/docs/reference/math/roots/#functions-sqrt
https://typst.app/docs/reference/math/scr/
https://typst.app/docs/reference/math/sizes/#functions-display
https://typst.app/docs/reference/math/sizes/#functions-inline
https://typst.app/docs/reference/math/sizes/#functions-script
@ -811,6 +810,7 @@ mod tests {
https://typst.app/docs/reference/math/variants/#functions-frak
https://typst.app/docs/reference/math/variants/#functions-mono
https://typst.app/docs/reference/math/variants/#functions-sans
https://typst.app/docs/reference/math/variants/#functions-scr
https://typst.app/docs/reference/math/variants/#functions-serif
https://typst.app/docs/reference/math/vec/
https://typst.app/docs/reference/model/bibliography/