Skip to content

Commit

Permalink
fix: build arm64 binaries using correct target
Browse files Browse the repository at this point in the history
resolves #13
  • Loading branch information
tekumara committed Sep 4, 2023
1 parent 59e3b65 commit 6f2c9d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ jobs:
runs-on: ${{ matrix.os }}
needs: wait

env:
RA_TARGET: ${{ matrix.target }}

steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -62,19 +59,19 @@ jobs:
- name: Install gcc-arm
if: matrix.target == 'arm-unknown-linux-gnueabihf'
run: sudo apt-get install gcc-arm-linux-gnueabihf
- run: cargo build --release
- run: cargo build --target ${{ matrix.target }} --release
- run: npm ci
- name: vsce package (unix)
if: matrix.os != 'windows-latest'
run: |
mkdir -p bundled dist
cp target/release/typos-lsp bundled/
cp target/${{ matrix.target }}/release/typos-lsp bundled/
npx vsce package -o dist/ --target ${{ matrix.code-target }}
- name: vsce package (windows)
if: matrix.os == 'windows-latest'
run: |
mkdir bundled,dist
copy target\release\typos-lsp.exe bundled\
copy target\${{ matrix.target }}\release\typos-lsp.exe bundled\
npx vsce package -o dist\ --target ${{ matrix.code-target }}
- name: Upload artifacts
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> **Source code spell checker for Visual Studio Code**
[typos](https://github.com/crate-ci/typos) is a low false-positive source code spell checker. This Visual Studio Code extension provides a fast, low memory, in-editor spell checker by integrating with typos through the Language Server Protocol (LSP).
[typos](https://github.com/crate-ci/typos) is a low false-positive source code spell checker. This Visual Studio Code extension provides a fast, low memory, in-editor spell checker by exposing typos via the Language Server Protocol (LSP).

## Features

Expand Down

0 comments on commit 6f2c9d9

Please sign in to comment.