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 fb2a48a
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 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 @@ -43,6 +37,12 @@ jobs:
with:
targets: ${{ matrix.target }}

- name: Install dependencies
shell: bash
run: |
sudo apt-get update
sudo apt-get install pkg-config libssl-dev libclang-dev protobuf-compiler
- name: Build
uses: actions-rs/cargo@v1
with:
Expand Down Expand Up @@ -84,17 +84,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 fb2a48a

Please sign in to comment.