Skip to content

Commit

Permalink
feat: ✨ support etcd action
Browse files Browse the repository at this point in the history
support etcd action

Signed-off-by: Asura <[email protected]>
  • Loading branch information
G-Asura committed May 11, 2024
1 parent f07c0f5 commit 9a43147
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,24 @@ jobs:
- ubuntu-latest
- macos-latest
runs-on: ${{matrix.os}}
services:
etcd:
image: quay.io/coreos/etcd:v3.4
options: >-
--entrypoint etcd
--publish 2379:2379
--publish 2380:2380
steps:
- uses: actions/checkout@v3
- name: Setup protoc
run: |
if [ ${{ runner.os }} = 'ubuntu-latest' ]; then
sudo apt-get update
sudo apt-get install -y protobuf-compiler
elif [ ${{ runner.os }} = 'macos-latest' ]; then
brew install protobuf
fi
- name: Build
run: cargo build --verbose
- name: Run tests
Expand Down Expand Up @@ -64,6 +79,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Setup protoc
run: vcpkg install protobuf protobuf:x64-windows
- name: install openssl
run: vcpkg install openssl:x64-windows-static-md
- name: Setup Rust
Expand Down

0 comments on commit 9a43147

Please sign in to comment.