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 87770d6
Showing 1 changed file with 23 additions and 18 deletions.
41 changes: 23 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 @@ -38,10 +32,17 @@ jobs:
shell: bash
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Install dependencies
shell: bash
run: |
sudo apt-get update
sudo apt-get install pkg-config libssl-dev libclang-dev protobuf-compiler
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
override: true

- name: Build
uses: actions-rs/cargo@v1
Expand Down Expand Up @@ -84,17 +85,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 87770d6

Please sign in to comment.