fix(ci): release workflow (#12)

This commit is contained in:
Luc Georges 2023-09-10 13:16:13 +02:00 committed by GitHub
parent 8c92eaa994
commit 15c4ef3088
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 43 deletions

View file

@ -30,20 +30,19 @@ jobs:
# - os: windows-latest # - os: windows-latest
# target: aarch64-pc-windows-msvc # target: aarch64-pc-windows-msvc
# code-target: win32-arm64 # code-target: win32-arm64
# - os: ubuntu-20.04 - os: ubuntu-22.04
# target: x86_64-unknown-linux-gnu target: x86_64-unknown-linux-gnu
# code-target: linux-x64 code-target: linux-x64
# container: ubuntu:18.04 - os: ubuntu-22.04
# - os: ubuntu-20.04 target: aarch64-unknown-linux-gnu
# target: aarch64-unknown-linux-gnu code-target: linux-arm64
# code-target: linux-arm64 - os: ubuntu-22.04
# - os: ubuntu-20.04 target: arm-unknown-linux-gnueabihf
# target: arm-unknown-linux-gnueabihf code-target: linux-armhf
# code-target: linux-armhf - os: macos-12
- os: macos-11
target: x86_64-apple-darwin target: x86_64-apple-darwin
code-target: darwin-x64 code-target: darwin-x64
- os: macos-11 - os: macos-12
target: aarch64-apple-darwin target: aarch64-apple-darwin
code-target: darwin-arm64 code-target: darwin-arm64
@ -60,31 +59,23 @@ jobs:
with: with:
fetch-depth: ${{ env.FETCH_DEPTH }} fetch-depth: ${{ env.FETCH_DEPTH }}
# - name: Install toolchain dependencies
# if: matrix.container == 'ubuntu:18.04'
# shell: bash
# run: |
# apt-get update && apt-get install -y build-essential curl
# curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --profile minimal --default-toolchain none -y
# echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH
- name: Install Rust toolchain - name: Install Rust toolchain
run: | run: |
rustup update --no-self-update stable rustup update --no-self-update stable
rustup target add ${{ matrix.target }} rustup target add ${{ matrix.target }}
rustup component add rust-src rustup component add rust-src
#
# - name: Update apt repositories
# if: matrix.target == 'aarch64-unknown-linux-gnu' || matrix.target == 'arm-unknown-linux-gnueabihf'
# run: sudo apt-get update
# - name: Install AArch64 target toolchain - name: Update apt repositories
# if: matrix.target == 'aarch64-unknown-linux-gnu' if: contains(matrix.os, 'ubuntu')
# run: sudo apt-get install gcc-aarch64-linux-gnu run: sudo apt-get update -y
# - name: Install ARM target toolchain - name: Install AArch64 target toolchain
# if: matrix.target == 'arm-unknown-linux-gnueabihf' if: matrix.target == 'aarch64-unknown-linux-gnu'
# run: sudo apt-get install gcc-multilib-arm-linux-gnueabihf run: sudo apt-get install gcc-aarch64-linux-gnu libc6-dev-arm64-cross
- name: Install ARM target toolchain
if: matrix.target == 'arm-unknown-linux-gnueabihf'
run: sudo apt-get install gcc-arm-linux-gnueabihf
- name: Dist - name: Dist
run: cargo xtask dist run: cargo xtask dist
@ -152,22 +143,22 @@ jobs:
with: with:
name: dist-x86_64-apple-darwin name: dist-x86_64-apple-darwin
path: dist path: dist
# - uses: actions/download-artifact@v1 - uses: actions/download-artifact@v1
# with: with:
# name: dist-x86_64-unknown-linux-gnu name: dist-x86_64-unknown-linux-gnu
# path: dist path: dist
- uses: actions/download-artifact@v1 - uses: actions/download-artifact@v1
with: with:
name: dist-x86_64-unknown-linux-musl name: dist-x86_64-unknown-linux-musl
path: dist path: dist
# - uses: actions/download-artifact@v1 - uses: actions/download-artifact@v1
# with: with:
# name: dist-aarch64-unknown-linux-gnu name: dist-aarch64-unknown-linux-gnu
# path: dist path: dist
# - uses: actions/download-artifact@v1 - uses: actions/download-artifact@v1
# with: with:
# name: dist-arm-unknown-linux-gnueabihf name: dist-arm-unknown-linux-gnueabihf
# path: dist path: dist
- uses: actions/download-artifact@v1 - uses: actions/download-artifact@v1
with: with:
name: dist-x86_64-pc-windows-msvc name: dist-x86_64-pc-windows-msvc

View file

@ -9,8 +9,8 @@ name = "llm-ls"
[dependencies] [dependencies]
home = "0.5" home = "0.5"
ropey = "1.6" ropey = "1.6"
serde = { version = "1", features = ["derive"] }
reqwest = { version = "0.11", default-features = false, features = ["json", "rustls-tls"] } reqwest = { version = "0.11", default-features = false, features = ["json", "rustls-tls"] }
serde = { version = "1", features = ["derive"] }
tokenizers = { version = "0.13", default-features = false, features = ["onig"] } tokenizers = { version = "0.13", default-features = false, features = ["onig"] }
tokio = { version = "1", features = ["fs", "io-std", "io-util", "macros", "rt-multi-thread"] } tokio = { version = "1", features = ["fs", "io-std", "io-util", "macros", "rt-multi-thread"] }
tower-lsp = "0.20" tower-lsp = "0.20"