Add Windows build for interop crate (#126)

* Update rust interop test binaries to v1.25.1

* Add Windows build for interop crate
This commit is contained in:
James Nugent
2019-11-10 12:15:39 +01:00
committed by Lucio Franco
parent ed53be5779
commit b2c1d2e2b7
8 changed files with 9 additions and 5 deletions
+3 -2
View File
@@ -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:
@@ -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 not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+6 -3
View File
@@ -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"