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
# target: aarch64-pc-windows-msvc
# code-target: win32-arm64
# - os: ubuntu-20.04
# target: x86_64-unknown-linux-gnu
# code-target: linux-x64
# container: ubuntu:18.04
# - os: ubuntu-20.04
# target: aarch64-unknown-linux-gnu
# code-target: linux-arm64
# - os: ubuntu-20.04
# target: arm-unknown-linux-gnueabihf
# code-target: linux-armhf
- os: macos-11
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
code-target: linux-x64
- os: ubuntu-22.04
target: aarch64-unknown-linux-gnu
code-target: linux-arm64
- os: ubuntu-22.04
target: arm-unknown-linux-gnueabihf
code-target: linux-armhf
- os: macos-12
target: x86_64-apple-darwin
code-target: darwin-x64
- os: macos-11
- os: macos-12
target: aarch64-apple-darwin
code-target: darwin-arm64
@ -60,31 +59,23 @@ jobs:
with:
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
run: |
rustup update --no-self-update stable
rustup target add ${{ matrix.target }}
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
# if: matrix.target == 'aarch64-unknown-linux-gnu'
# run: sudo apt-get install gcc-aarch64-linux-gnu
- name: Update apt repositories
if: contains(matrix.os, 'ubuntu')
run: sudo apt-get update -y
# - name: Install ARM target toolchain
# if: matrix.target == 'arm-unknown-linux-gnueabihf'
# run: sudo apt-get install gcc-multilib-arm-linux-gnueabihf
- name: Install AArch64 target toolchain
if: matrix.target == 'aarch64-unknown-linux-gnu'
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
run: cargo xtask dist
@ -152,22 +143,22 @@ jobs:
with:
name: dist-x86_64-apple-darwin
path: dist
# - uses: actions/download-artifact@v1
# with:
# name: dist-x86_64-unknown-linux-gnu
# path: dist
- uses: actions/download-artifact@v1
with:
name: dist-x86_64-unknown-linux-gnu
path: dist
- uses: actions/download-artifact@v1
with:
name: dist-x86_64-unknown-linux-musl
path: dist
# - uses: actions/download-artifact@v1
# with:
# name: dist-aarch64-unknown-linux-gnu
# path: dist
# - uses: actions/download-artifact@v1
# with:
# name: dist-arm-unknown-linux-gnueabihf
# path: dist
- uses: actions/download-artifact@v1
with:
name: dist-aarch64-unknown-linux-gnu
path: dist
- uses: actions/download-artifact@v1
with:
name: dist-arm-unknown-linux-gnueabihf
path: dist
- uses: actions/download-artifact@v1
with:
name: dist-x86_64-pc-windows-msvc

View file

@ -9,8 +9,8 @@ name = "llm-ls"
[dependencies]
home = "0.5"
ropey = "1.6"
serde = { version = "1", features = ["derive"] }
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"] }
tokio = { version = "1", features = ["fs", "io-std", "io-util", "macros", "rt-multi-thread"] }
tower-lsp = "0.20"