Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Commit

Permalink
Add Windows build for interop crate (hyperium#126)
Browse files Browse the repository at this point in the history
* Update rust interop test binaries to v1.25.1

* Add Windows build for interop crate
  • Loading branch information
jen20 authored and rabbitinspace committed Jan 1, 2020
1 parent 8b0e605 commit 1d11b35
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
os: [ubuntu-latest, macOS-latest, windows-latest]
rust: [stable]

env:
Expand All @@ -72,6 +72,7 @@ jobs:
run: rustup component add rustfmt
- name: Run interop tests
run: ./tonic-interop/test.sh
shell: bash
- name: Run interop tests with tls
run: ./tonic-interop/test.sh --use_tls

shell: bash
Binary file modified tonic-interop/bin/client_darwin_amd64
Binary file not shown.
Binary file modified tonic-interop/bin/client_linux_amd64
Binary file not shown.
Binary file added tonic-interop/bin/client_windows_amd64.exe
Binary file not shown.
Binary file modified tonic-interop/bin/server_darwin_amd64
Binary file not shown.
Binary file modified tonic-interop/bin/server_linux_amd64
Binary file not shown.
Binary file added tonic-interop/bin/server_windows_amd64.exe
Binary file not shown.
9 changes: 6 additions & 3 deletions tonic-interop/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@
set -eu
set -o pipefail

echo "Running for OS: ${OSTYPE}"

case "$OSTYPE" in
darwin*) OS="darwin" ;;
linux*) OS="linux" ;;
darwin*) OS="darwin"; EXT="" ;;
linux*) OS="linux"; EXT="" ;;
msys*) OS="windows"; EXT=".exe" ;;
*) exit 2 ;;
esac

cargo build -p tonic-interop --bins

ARG="${1:-""}"
SERVER="tonic-interop/bin/server_${OS}_amd64"
SERVER="tonic-interop/bin/server_${OS}_amd64${EXT}"

# TLS_CA="tonic-interop/data/ca.pem"
TLS_CRT="tonic-interop/data/server1.pem"
Expand Down

0 comments on commit 1d11b35

Please sign in to comment.