Skip to content

Commit

Permalink
chore: add install dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi committed Dec 27, 2023
1 parent b57dac9 commit 8f44d08
Showing 1 changed file with 26 additions and 18 deletions.
44 changes: 26 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 }}

0 comments on commit 8f44d08

Please sign in to comment.