Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release 0.18.0
Browse files Browse the repository at this point in the history
harper-comments@0.18.0
harper-core@0.18.0
harper-html@0.18.0
harper-literate-haskell@0.18.0
harper-ls@0.18.0
harper-tree-sitter@0.18.0
harper-typst@0.18.0

Generated by cargo-workspaces
elijah-potter committed Jan 27, 2025
1 parent e9e1050 commit 9cc8e70
Showing 15 changed files with 230 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_harper_binaries.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Build Binaries

on:
push:
117 changes: 117 additions & 0 deletions .github/workflows/release_harper_binaries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
name: Release Binaries

on:
push:
tags:
- "v*"

jobs:
release:
name: Release ${{ matrix.platform.project }} - ${{ matrix.platform.release_for }}
if: github.event.pull_request.draft == false
strategy:
matrix:
platform:
- release_for: Windows-x86_64
os: windows-latest
target: x86_64-pc-windows-msvc
project: harper-ls
bin: harper-ls.exe
name: harper-ls-x86_64-pc-windows-msvc.zip
command: build
- release_for: macOS-x86_64
os: macOS-latest
target: x86_64-apple-darwin
project: harper-ls
bin: harper-ls
name: harper-ls-x86_64-apple-darwin.tar.gz
command: build
- release_for: macOS-aarch64
os: macOS-latest
target: aarch64-apple-darwin
project: harper-ls
bin: harper-ls
name: harper-ls-aarch64-apple-darwin.tar.gz
command: build
- release_for: Linux-x86_64-GNU
os: ubuntu-20.04
target: x86_64-unknown-linux-gnu
project: harper-ls
bin: harper-ls
name: harper-ls-x86_64-unknown-linux-gnu.tar.gz
command: build
- release_for: Linux-aarch64-GNU
os: ubuntu-20.04
target: aarch64-unknown-linux-gnu
project: harper-ls
bin: harper-ls
name: harper-ls-aarch64-unknown-linux-gnu.tar.gz
command: build

- release_for: Windows-x86_64
os: windows-latest
target: x86_64-pc-windows-msvc
project: harper-cli
bin: harper-cli.exe
name: harper-cli-x86_64-pc-windows-msvc.zip
command: build
- release_for: macOS-x86_64
os: macOS-latest
target: x86_64-apple-darwin
project: harper-cli
bin: harper-cli
name: harper-cli-x86_64-apple-darwin.tar.gz
command: build
- release_for: macOS-aarch64
os: macOS-latest
target: aarch64-apple-darwin
project: harper-cli
bin: harper-cli
name: harper-cli-aarch64-apple-darwin.tar.gz
command: build
- release_for: Linux-x86_64-GNU
os: ubuntu-20.04
target: x86_64-unknown-linux-gnu
project: harper-cli
bin: harper-cli
name: harper-cli-x86_64-unknown-linux-gnu.tar.gz
command: build
- release_for: Linux-aarch64-GNU
os: ubuntu-20.04
target: aarch64-unknown-linux-gnu
project: harper-cli
bin: harper-cli
name: harper-cli-aarch64-unknown-linux-gnu.tar.gz
command: build

runs-on: ${{ matrix.platform.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
command: ${{ matrix.platform.command }}
target: ${{ matrix.platform.target }}
args: "--locked --release --bin ${{ matrix.platform.project }}"
strip: true
- name: Package as archive
shell: bash
run: |
cd target/${{ matrix.platform.target }}/release
if [[ "${{ matrix.platform.os }}" == "windows-latest" ]]; then
7z a ../../../${{ matrix.platform.name }} ${{ matrix.platform.bin }}
else
tar czvf ../../../${{ matrix.platform.name }} ${{ matrix.platform.bin }}
fi
cd -
- uses: ncipollo/release-action@v1
with:
artifacts: ${{ matrix.platform.name }}
allowUpdates: true
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform.bin }}-${{ matrix.platform.target }}
path: ${{ matrix.platform.name }}

76 changes: 76 additions & 0 deletions .github/workflows/release_vscode_plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Package VS Code Plugin

on:
push:
tags:
- "v*"

jobs:
package:
name: Package - ${{ matrix.platform.code_target }}
if: github.event.pull_request.draft == false
strategy:
matrix:
platform:
- os: windows-latest
rust_target: x86_64-pc-windows-msvc
code_target: win32-x64
- os: macOS-latest
rust_target: x86_64-apple-darwin
code_target: darwin-x64
- os: macOS-latest
rust_target: aarch64-apple-darwin
code_target: darwin-arm64
- os: ubuntu-20.04
rust_target: x86_64-unknown-linux-gnu
code_target: linux-x64
- os: ubuntu-20.04
rust_target: aarch64-unknown-linux-gnu
code_target: linux-arm64
runs-on: ${{ matrix.platform.os }}
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Build harper-ls
uses: houseabsolute/actions-rust-cross@v0
with:
target: ${{ matrix.platform.rust_target }}
args: "--locked --release --bin harper-ls"
strip: true
- name: Package extension
id: package_extension
shell: bash
run: |
bin_dir="packages/vscode-plugin/bin"
release_dir="target/${{ matrix.platform.rust_target }}/release"
mkdir "$bin_dir"
if [[ "${{ matrix.platform.os }}" == "windows-latest" ]]; then
cp "${release_dir}/harper-ls.exe" "$bin_dir"
else
cp "${release_dir}/harper-ls" "$bin_dir"
fi
just package-vscode ${{ matrix.platform.code_target }}
echo artifact=$(echo packages/vscode-plugin/*.vsix) >> $GITHUB_OUTPUT
- uses: ncipollo/release-action@v1
with:
artifacts: "./packages/vscode-plugin/*.vsix"
allowUpdates: true
- name: Publish to OpenVSX
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
packagePath: "./packages/vscode-plugin/"
extensionFile: ${{ steps.package_extension.outputs.artifact }}
- name: Publish to the Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
packagePath: "./packages/vscode-plugin/"
extensionFile: ${{ steps.package_extension.outputs.artifact }}
registryUrl: https://marketplace.visualstudio.com
14 changes: 7 additions & 7 deletions Cargo.lock

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

8 changes: 4 additions & 4 deletions harper-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -10,10 +10,10 @@ repository = "https://github.com/automattic/harper"
anyhow = "1.0.95"
ariadne = "0.4.1"
clap = { version = "4.5.27", features = ["derive"] }
harper-literate-haskell = { path = "../harper-literate-haskell", version = "0.17.0" }
harper-core = { path = "../harper-core", version = "0.17.0" }
harper-comments = { path = "../harper-comments", version = "0.17.0" }
harper-typst = { path = "../harper-typst", version = "0.17.0" }
harper-literate-haskell = { path = "../harper-literate-haskell", version = "0.18.0" }
harper-core = { path = "../harper-core", version = "0.18.0" }
harper-comments = { path = "../harper-comments", version = "0.18.0" }
harper-typst = { path = "../harper-typst", version = "0.18.0" }
serde = { version = "1.0.214", features = ["derive"] }
serde_json = "1.0.137"

8 changes: 4 additions & 4 deletions harper-comments/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[package]
name = "harper-comments"
version = "0.17.0"
version = "0.18.0"
edition = "2021"
description = "The language checker for developers."
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/automattic/harper"

[dependencies]
harper-core = { path = "../harper-core", version = "0.17.0" }
harper-html = { path = "../harper-html", version = "0.17.0" }
harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.17.0" }
harper-core = { path = "../harper-core", version = "0.18.0" }
harper-html = { path = "../harper-html", version = "0.18.0" }
harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.18.0" }
tree-sitter = "0.20.10"
tree-sitter-rust = "0.20.4"
tree-sitter-typescript = "0.20.3"
2 changes: 1 addition & 1 deletion harper-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "harper-core"
version = "0.17.0"
version = "0.18.0"
edition = "2021"
description = "The language checker for developers."
license = "Apache-2.0"
6 changes: 3 additions & 3 deletions harper-html/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
name = "harper-html"
version = "0.17.0"
version = "0.18.0"
edition = "2021"
description = "The language checker for developers."
license = "Apache-2.0"
repository = "https://github.com/automattic/harper"

[dependencies]
harper-core = { path = "../harper-core", version = "0.17.0" }
harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.17.0" }
harper-core = { path = "../harper-core", version = "0.18.0" }
harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.18.0" }
tree-sitter-html = "0.19.0"
tree-sitter = "0.20.10"

8 changes: 4 additions & 4 deletions harper-literate-haskell/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
name = "harper-literate-haskell"
version = "0.17.0"
version = "0.18.0"
edition = "2021"
description = "The language checker for developers."
license = "Apache-2.0"
repository = "https://github.com/automattic/harper"

[dependencies]
harper-core = { path = "../harper-core", version = "0.17.0" }
harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.17.0" }
harper-comments = { path = "../harper-comments", version = "0.17.0" }
harper-core = { path = "../harper-core", version = "0.18.0" }
harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.18.0" }
harper-comments = { path = "../harper-comments", version = "0.18.0" }
itertools = "0.14.0"
paste = "1.0.14"
12 changes: 6 additions & 6 deletions harper-ls/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
[package]
name = "harper-ls"
version = "0.17.0"
version = "0.18.0"
edition = "2021"
description = "The language checker for developers."
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/automattic/harper"

[dependencies]
harper-literate-haskell = { path = "../harper-literate-haskell", version = "0.17.0" }
harper-core = { path = "../harper-core", version = "0.17.0", features = ["concurrent"] }
harper-comments = { path = "../harper-comments", version = "0.17.0" }
harper-typst = { path = "../harper-typst", version = "0.17.0" }
harper-html = { path = "../harper-html", version = "0.17.0" }
harper-literate-haskell = { path = "../harper-literate-haskell", version = "0.18.0" }
harper-core = { path = "../harper-core", version = "0.18.0", features = ["concurrent"] }
harper-comments = { path = "../harper-comments", version = "0.18.0" }
harper-typst = { path = "../harper-typst", version = "0.18.0" }
harper-html = { path = "../harper-html", version = "0.18.0" }
tower-lsp = "0.20.0"
tokio = { version = "1.43.0", features = ["fs", "rt", "rt-multi-thread", "macros", "io-std", "io-util", "net"] }
clap = { version = "4.5.27", features = ["derive"] }
4 changes: 2 additions & 2 deletions harper-tree-sitter/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "harper-tree-sitter"
version = "0.17.0"
version = "0.18.0"
edition = "2021"
description = "The language checker for developers."
license = "Apache-2.0"
repository = "https://github.com/automattic/harper"

[dependencies]
harper-core = { path = "../harper-core", version = "0.17.0" }
harper-core = { path = "../harper-core", version = "0.18.0" }
tree-sitter = "0.20.10"
4 changes: 2 additions & 2 deletions harper-typst/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "harper-typst"
version = "0.17.0"
version = "0.18.0"
edition = "2021"
description = "The language checker for developers."
license = "Apache-2.0"
repository = "https://github.com/automattic/harper"

[dependencies]
harper-core = { path = "../harper-core", version = "0.17.0" }
harper-core = { path = "../harper-core", version = "0.18.0" }
typst-syntax = { version = "0.12.0" }
ordered-float = { version = "4.6.0", features = ["serde"] }
itertools = "0.14.0"
2 changes: 1 addition & 1 deletion harper-wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ console_error_panic_hook = "0.1.7"
tracing = "0.1.41"
tracing-wasm = "0.2.1"
wasm-bindgen = "0.2.97"
harper-core = { path = "../harper-core", version = "0.17.0", features = ["concurrent"] }
harper-core = { path = "../harper-core", version = "0.18.0", features = ["concurrent"] }
once_cell = "1.20.2"
serde-wasm-bindgen = "0.6.5"
serde_json = "1.0.137"
2 changes: 1 addition & 1 deletion packages/harper.js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "harper.js",
"version": "0.17.0",
"version": "0.18.0",
"license": "Apache-2.0",
"author": "Elijah Potter",
"description": "The grammar checker for developers.",
2 changes: 1 addition & 1 deletion packages/vscode-plugin/package.json
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
"name": "harper",
"displayName": "Harper",
"description": "The grammar checker for developers",
"version": "0.17.0",
"version": "0.18.0",
"private": true,
"author": "Elijah Potter",
"publisher": "elijah-potter",

0 comments on commit 9cc8e70

Please sign in to comment.