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:
committed by
Lucio Franco
parent
ed53be5779
commit
b2c1d2e2b7
@@ -57,7 +57,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macOS-latest]
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
||||||
rust: [stable]
|
rust: [stable]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@@ -72,6 +72,7 @@ jobs:
|
|||||||
run: rustup component add rustfmt
|
run: rustup component add rustfmt
|
||||||
- name: Run interop tests
|
- name: Run interop tests
|
||||||
run: ./tonic-interop/test.sh
|
run: ./tonic-interop/test.sh
|
||||||
|
shell: bash
|
||||||
- name: Run interop tests with tls
|
- name: Run interop tests with tls
|
||||||
run: ./tonic-interop/test.sh --use_tls
|
run: ./tonic-interop/test.sh --use_tls
|
||||||
|
shell: bash
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Executable
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Executable
BIN
Binary file not shown.
@@ -3,16 +3,19 @@
|
|||||||
set -eu
|
set -eu
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
|
echo "Running for OS: ${OSTYPE}"
|
||||||
|
|
||||||
case "$OSTYPE" in
|
case "$OSTYPE" in
|
||||||
darwin*) OS="darwin" ;;
|
darwin*) OS="darwin"; EXT="" ;;
|
||||||
linux*) OS="linux" ;;
|
linux*) OS="linux"; EXT="" ;;
|
||||||
|
msys*) OS="windows"; EXT=".exe" ;;
|
||||||
*) exit 2 ;;
|
*) exit 2 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
cargo build -p tonic-interop --bins
|
cargo build -p tonic-interop --bins
|
||||||
|
|
||||||
ARG="${1:-""}"
|
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_CA="tonic-interop/data/ca.pem"
|
||||||
TLS_CRT="tonic-interop/data/server1.pem"
|
TLS_CRT="tonic-interop/data/server1.pem"
|
||||||
|
|||||||
Reference in New Issue
Block a user