From 8f44d083ce84c4dc2b7740f384ea71a07c715250 Mon Sep 17 00:00:00 2001 From: Gaius Date: Wed, 27 Dec 2023 17:04:49 +0800 Subject: [PATCH] chore: add install dependencies Signed-off-by: Gaius --- .github/workflows/release.yml | 44 +++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fa29660e..eac8ab85 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,12 +23,6 @@ jobs: - build: linux os: ubuntu-latest target: aarch64-unknown-linux-musl - - build: macos - os: macos-latest - target: x86_64-apple-darwin - - build: macos - os: macos-latest - target: aarch64-apple-darwin steps: - name: Checkout @@ -42,6 +36,16 @@ jobs: uses: dtolnay/rust-toolchain@stable with: targets: ${{ matrix.target }} + override: true + + - name: Install dependencies + shell: bash + run: | + sudo apt-get update + sudo apt-get install pkg-config libssl-dev libclang-dev protobuf-compiler + cargo clean + OPENSSL_LIB_DIR="/usr/lib/${{ matrix.target }}" + OPENSSL_INCLUDE_DIR="/usr/include/openssl" - name: Build uses: actions-rs/cargo@v1 @@ -84,17 +88,21 @@ jobs: files: | ${{ env.ASSET }} - publish-crates: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 + # publish-crates: + # runs-on: ubuntu-latest + # steps: + # - name: Checkout + # uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true + # - name: Install Rust + # uses: dtolnay/rust-toolchain@stable - - uses: katyo/publish-crates@v2 - with: - registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + # - name: Install dependencies + # shell: bash + # run: | + # sudo apt-get update + # sudo apt-get install -y openssl libclang-dev pkg-config protobuf-compiler libssl-dev + + # - uses: katyo/publish-crates@v2 + # with: + # registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}