-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into unicode-script
- Loading branch information
Showing
35 changed files
with
718 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Release | ||
name: Build Binaries | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
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 | ||
draft: true | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.platform.bin }}-${{ matrix.platform.target }} | ||
path: ${{ matrix.platform.name }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Release 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 | ||
draft: 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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.