Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(ci): add archive with LS to nightly releases #147

Merged
merged 2 commits into from
Feb 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,33 @@ jobs:
- name: Package Extension
run: yarn package

- name: Create Language Server Archive
run: |
VERSION=$(node -p "require('./package.json').version")
mkdir -p tact-language-server
cp -r dist/* tact-language-server/
cp package.json tact-language-server/
tar -czf tact-language-server-v${VERSION}.tar.gz tact-language-server/
zip -r tact-language-server-v${VERSION}.zip tact-language-server/

- name: Update Nightly Release
run: |
VERSION=$(node -p "require('./package.json').version")

gh release delete nightly --yes || true
gh release create nightly \
--title "Nightly Build v${VERSION}" \
--notes "🌙 This is an automated nightly build from the master branch." \
--notes "🌙 This is an automated nightly build from the master branch.

## VS Code Extension
- Download the .vsix file and install it through VS Code

## Other Editors
- Download tact-language-server-v${VERSION}.tar.gz (Linux/macOS) or tact-language-server-v${VERSION}.zip (Windows)
- Extract it to a convenient location
- Configure your editor to use the language server from the extracted folder" \
--prerelease \
--target master \
*.vsix
*.vsix tact-language-server-v${VERSION}.tar.gz tact-language-server-v${VERSION}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42 changes: 25 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,32 @@ The easiest way to get started with Tact is to use VS Code or editors based on i
VS Code.
2. That's it!

Or, download the latest [release](https://github.com/tact-lang/tact-language-server/releases) and install it manually:
## Installation

In VS Code (or VS Code-like editors):
### VS Code / VSCodium / Cursor / Windsurf

Download and install the extension:

- Open the Command Palette (`Ctrl+Shift+P` or `Cmd+Shift+P`)
- Type "Install from VSIX"
- Select the generated `.vsix` file
- Reload VS Code
1. Get the latest `.vsix` file from [releases](https://github.com/tact-lang/tact-language-server/releases)
2. In VS Code:
- Open the Command Palette (`Ctrl+Shift+P` or `Cmd+Shift+P`)
- Type "Install from VSIX"
- Select the downloaded `.vsix` file
- Reload VS Code

The extension will automatically activate when you open any `.tact` file.
### Other Editors

## Building & Installation
Download the pre-built language server:

Currently, the only way to run a language server in other editors is to build it manually.
1. Get the latest archive from [releases](https://github.com/tact-lang/tact-language-server/releases):
- `tact-language-server-*.tar.gz` for Linux/macOS
- `tact-language-server-*.zip` for Windows
2. Extract it to a convenient location
3. Configure your editor to use the language server (see editor-specific instructions below)

First, clone and build the language server:
### Building from Source

If you want to build the language server yourself:

```shell
git clone https://github.com/tact-lang/tact-language-server
Expand All @@ -46,15 +56,13 @@ yarn install
yarn build
```

### VS Code / VSCodium / Cursor / Windsurf

1. Run the following command to create the VSIX package:
For VS Code extension, additionally run:

```shell
yarn package
```
```shell
yarn package
```

2. See steps from "Quick start"
## Editor Setup

### Helix

Expand Down