Skip to content

Commit

Permalink
ci(release): add aarch64-unknown-linux-musl (#146)
Browse files Browse the repository at this point in the history
Add a `aarch64-unknown-linux-musl` binary to the CI release builds.

Successful workflow run and build artifacts can be found
[here](https://github.com/loicreynier/typos-lsp/actions/runs/12411262328).

I've tested successfully the `typos-lsp` binary however I am not able to
test the `.vsix` package.

Close #145.

---------

Co-authored-by: Oliver Mannion <125105+tekumara@users.noreply.github.com>
  • Loading branch information
loicreynier and tekumara authored Dec 20, 2024
1 parent 4f3c534 commit 7bf3266
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
linker = "aarch64-linux-gnu-gcc"
ar = "aarch64-linux-gnu-ar"

[target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-gnu-gcc"
ar = "aarch64-linux-gnu-ar"

[target.arm-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"
ar = "arm-linux-gnueabihf-ar"
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
- os: ubuntu-20.04
target: aarch64-unknown-linux-gnu
code-target: linux-arm64
- os: ubuntu-20.04
target: aarch64-unknown-linux-musl
code-target: linux-arm64
- os: ubuntu-20.04
target: arm-unknown-linux-gnueabihf
code-target: linux-armhf
Expand All @@ -60,7 +63,7 @@ jobs:
target: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
- name: Install GCC arm64 (linux)
if: matrix.target == 'aarch64-unknown-linux-gnu'
if: startsWith(matrix.target, 'aarch64-unknown-linux')
run: sudo apt-get update && sudo apt-get install gcc-aarch64-linux-gnu
- name: Install GCC armhf (linux)
if: matrix.target == 'arm-unknown-linux-gnueabihf'
Expand Down

0 comments on commit 7bf3266

Please sign in to comment.