Skip to content

Commit

Permalink
Revert "fix: cross build with vendor-openssl feature and bump versi…
Browse files Browse the repository at this point in the history
…on to 0.12.4-rc2 (#884)"

This reverts commit 254c4ce.
  • Loading branch information
Myriad-Dreamin committed Nov 23, 2024
1 parent 254c4ce commit a42bef1
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 53 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,14 @@ jobs:
platform: linux
arch: x64
regular_build: 'true'
cross: true
- os: ubuntu-20.04
rust-target: aarch64-unknown-linux-gnu
platform: linux
arch: arm64
cross: true
- os: ubuntu-20.04
rust-target: arm-unknown-linux-gnueabihf
platform: linux
arch: armhf
cross: true
- os: macos-13
rust-target: x86_64-apple-darwin
platform: darwin
Expand Down Expand Up @@ -112,20 +109,29 @@ jobs:
with:
targets: ${{ matrix.rust-target }}
if: (fromJson(env.isRelease) || fromJson(env.isNightly))
- name: Install llvm
if: matrix.platform == 'linux' && (fromJson(env.isRelease) || fromJson(env.isNightly))
run: |
sudo apt-get update
sudo apt-get install llvm
- name: Install AArch64 target toolchain
if: matrix.rust-target == 'aarch64-unknown-linux-gnu' && (fromJson(env.isRelease) || fromJson(env.isNightly))
run: |
sudo apt-get update
sudo apt-get install gcc-aarch64-linux-gnu
- name: Install ARM target toolchain
if: matrix.rust-target == 'arm-unknown-linux-gnueabihf' && (fromJson(env.isRelease) || fromJson(env.isNightly))
run: |
sudo apt-get update
sudo apt-get install gcc-arm-linux-gnueabihf
- name: Run rust-cache
uses: Swatinem/rust-cache@v2
if: (fromJson(env.isRelease) || fromJson(env.isNightly))
- name: Build tinymist binary (cross)
shell: pwsh
run: |
cargo install cross --git https://github.com/cross-rs/cross.git --locked --rev 085092ca
cross build --profile=gh-release -p tinymist --target ${{ matrix.rust-target }} --features vendor-openssl
if: matrix.cross && (startsWith(github.ref, 'refs/tags/') || matrix.regular_build == 'true')
- name: Build tinymist binary
shell: pwsh
run: |
cargo build --profile=gh-release -p tinymist --target ${{ matrix.rust-target }}
if: "!matrix.cross && (startsWith(github.ref, 'refs/tags/') || matrix.regular_build == 'true')"
if: startsWith(github.ref, 'refs/tags/') || matrix.regular_build == 'true'
- name: Rename debug symbols for windows
if: matrix.platform == 'win32' && (fromJson(env.isRelease) || fromJson(env.isNightly))
run: |
Expand Down
46 changes: 17 additions & 29 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[workspace.package]
description = "An integrated language service for Typst."
authors = ["Myriad-Dreamin <camiyoru@gmail.com>", "Nathan Varner"]
version = "0.12.4-rc2"
version = "0.12.4-rc1"
edition = "2021"
readme = "README.md"
license = "Apache-2.0"
Expand Down Expand Up @@ -145,7 +145,7 @@ insta = { version = "1.39", features = ["glob"] }

# Our Own Crates
typst-preview = { path = "./crates/typst-preview" }
tinymist-assets = { version = "0.12.4-rc2" }
tinymist-assets = { version = "0.12.4-rc1" }
tinymist = { path = "./crates/tinymist/" }
tinymist-derive = { path = "./crates/tinymist-derive/" }
tinymist-analysis = { path = "./crates/tinymist-analysis/" }
Expand Down
6 changes: 0 additions & 6 deletions contrib/typlite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,8 @@ repository.workspace = true
name = "typlite"
path = "src/main.rs"

[features]

# Whether to vendor OpenSSL. Not applicable to Windows and macOS builds.
vendor-openssl = ["typst-kit/vendor-openssl"]

[dependencies]
typlite.workspace = true
clap.workspace = true
tinymist-world.workspace = true
ecow.workspace = true
typst-kit.workspace = true
4 changes: 0 additions & 4 deletions crates/tinymist/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ open = { workspace = true, optional = true }
dirs.workspace = true
base64.workspace = true
rayon.workspace = true
typst-kit.workspace = true

typst-ansi-hl = "0.2.0"

Expand All @@ -100,9 +99,6 @@ dhat-heap = ["dhat"]
# into the binary.
embed-fonts = ["typst-assets/fonts"]

# Whether to vendor OpenSSL. Not applicable to Windows and macOS builds.
vendor-openssl = ["typst-kit/vendor-openssl"]

# Disable the default content hint.
# This requires modifying typst.
no-content-hint = [
Expand Down
2 changes: 1 addition & 1 deletion editors/vscode/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tinymist",
"version": "0.12.4-rc2",
"version": "0.12.4-rc1",
"description": "An integrated language service for Typst",
"keywords": [
"typst",
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/textmate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typst-textmate",
"version": "0.12.4-rc2",
"version": "0.12.4-rc1",
"private": true,
"scripts": {
"compile": "npx tsc && node ./dist/main.mjs",
Expand Down

0 comments on commit a42bef1

Please sign in to comment.