diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2f9c7b2..96d2f29 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,9 @@ jobs: - os: ubuntu-22.04 target: x86_64-unknown-linux-gnu code-target: linux-x64 + - os: ubuntu-22.04 + target: x86_64-unknown-linux-musl + code-target: linux-x64 - os: ubuntu-22.04 target: aarch64-unknown-linux-gnu code-target: linux-arm64 @@ -86,11 +89,12 @@ jobs: name: dist-${{ matrix.target }} path: ./dist - dist-x86_64-unknown-linux-musl: - name: dist (x86_64-unknown-linux-musl) + dist-x86_64-alpine-linux-musl: + name: dist (x86_64-alpine-linux-musl) runs-on: ubuntu-latest env: LLM_LS_TARGET: x86_64-unknown-linux-musl + LLM_LS_ARTIFACT: x86_64-alpine-linux-musl # For some reason `-crt-static` is not working for clang without lld RUSTFLAGS: "-C link-arg=-fuse-ld=lld -C target-feature=-crt-static" container: @@ -113,13 +117,13 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v1 with: - name: dist-x86_64-unknown-linux-musl + name: dist-x86_64-alpine-linux-musl path: ./dist publish: name: publish runs-on: ubuntu-latest - needs: ["dist", "dist-x86_64-unknown-linux-musl"] + needs: ["dist", "dist-x86_64-alpine-linux-musl"] steps: - name: Checkout repository uses: actions/checkout@v3 @@ -151,6 +155,10 @@ jobs: with: name: dist-x86_64-unknown-linux-musl path: dist + - uses: actions/download-artifact@v1 + with: + name: dist-x86_64-alpine-linux-musl + path: dist - uses: actions/download-artifact@v1 with: name: dist-aarch64-unknown-linux-gnu diff --git a/Cargo.lock b/Cargo.lock index 7148385..9b829e7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -688,7 +688,6 @@ dependencies = [ "tree-sitter-objc", "tree-sitter-python", "tree-sitter-r", - "tree-sitter-ruby", "tree-sitter-rust", "tree-sitter-scala", "tree-sitter-swift", @@ -1806,8 +1805,7 @@ dependencies = [ [[package]] name = "tree-sitter-elixir" version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a9916f3e1c80b3c8aab8582604e97e8720cb9b893489b347cf999f80f9d469e" +source = "git+https://github.com/elixir-lang/tree-sitter-elixir.git?rev=a2861e88a730287a60c11ea9299c033c7d076e30#a2861e88a730287a60c11ea9299c033c7d076e30" dependencies = [ "cc", "tree-sitter", @@ -1835,9 +1833,8 @@ dependencies = [ [[package]] name = "tree-sitter-html" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "184e6b77953a354303dc87bf5fe36558c83569ce92606e7b382a0dc1b7443443" +version = "0.20.0" +source = "git+https://github.com/tree-sitter/tree-sitter-html.git?rev=d742025fa2d8e6100f134a6ea990443aa1f074b3#d742025fa2d8e6100f134a6ea990443aa1f074b3" dependencies = [ "cc", "tree-sitter", @@ -1923,16 +1920,6 @@ dependencies = [ "tree-sitter", ] -[[package]] -name = "tree-sitter-ruby" -version = "0.20.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ac30cbb1560363ae76e1ccde543d6d99087421e228cc47afcec004b86bb711a" -dependencies = [ - "cc", - "tree-sitter", -] - [[package]] name = "tree-sitter-rust" version = "0.20.4" diff --git a/crates/llm-ls/Cargo.toml b/crates/llm-ls/Cargo.toml index f4683d4..45ec3e9 100644 --- a/crates/llm-ls/Cargo.toml +++ b/crates/llm-ls/Cargo.toml @@ -22,10 +22,10 @@ tree-sitter-bash = "0.20" tree-sitter-c = "0.20" tree-sitter-cpp = "0.20" tree-sitter-c-sharp = "0.20" -tree-sitter-elixir = "0.1" +tree-sitter-elixir = { git = "https://github.com/elixir-lang/tree-sitter-elixir.git", rev = "a2861e88a730287a60c11ea9299c033c7d076e30", version = "0.1.0" } tree-sitter-erlang = "0.2" tree-sitter-go = "0.20" -tree-sitter-html = "0.19" +tree-sitter-html = { git = "https://github.com/tree-sitter/tree-sitter-html.git", rev = "d742025fa2d8e6100f134a6ea990443aa1f074b3", version = "0.20.0" } tree-sitter-java = "0.20" tree-sitter-javascript = "0.20" tree-sitter-json = "0.20" @@ -34,7 +34,6 @@ tree-sitter-md = "0.1" tree-sitter-objc = "3" tree-sitter-python = "0.20" tree-sitter-r = "0.19" -tree-sitter-ruby = "0.20" tree-sitter-rust = "0.20" tree-sitter-scala = "0.20" tree-sitter-swift = "0.3" diff --git a/crates/llm-ls/src/document.rs b/crates/llm-ls/src/document.rs index 2ee1544..9c9d179 100644 --- a/crates/llm-ls/src/document.rs +++ b/crates/llm-ls/src/document.rs @@ -119,13 +119,7 @@ fn get_parser(language_id: LanguageId) -> Result { .map_err(internal_error)?; Ok(parser) } - LanguageId::Ruby => { - let mut parser = Parser::new(); - parser - .set_language(tree_sitter_ruby::language()) - .map_err(internal_error)?; - Ok(parser) - } + LanguageId::Ruby => Ok(Parser::new()), LanguageId::Rust => { let mut parser = Parser::new(); parser diff --git a/xtask/src/dist.rs b/xtask/src/dist.rs index c35fb5f..447eaba 100644 --- a/xtask/src/dist.rs +++ b/xtask/src/dist.rs @@ -136,7 +136,10 @@ impl Target { (String::new(), None) }; let server_path = out_path.join(format!("llm-ls{exe_suffix}")); - let artifact_name = format!("llm-ls-{name}{exe_suffix}"); + let artifact_name = match env::var("LLM_LS_ARTIFACT") { + Ok(artifact) => format!("llm-ls-{artifact}{exe_suffix}"), + _ => format!("llm-ls-{name}{exe_suffix}") + }; Self { name, server_path,