Add cross compiled interop servers

This commit is contained in:
Lucio Franco
2019-09-01 13:04:33 -04:00
parent 4861354d46
commit 85f7a72e22
6 changed files with 13 additions and 3 deletions
+6 -2
View File
@@ -5,7 +5,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest]
os: [ubuntu-latest, macOS-latest]
rust: [nightly]
steps:
@@ -13,7 +13,11 @@ jobs:
with:
rust-version: ${{ matrix.rust }}
- uses: actions/checkout@master
- name: Run fmt
run: cargo fmt -- --check
- name: Run check
run: cargo check --all --all-features --all-targets
- name: Run tests
run: cargo test --all --verbose
run: cargo test --all
- name: Run interop tests
run: ./tonic-interop/test.sh
Binary file not shown.
Binary file not shown.
+7 -1
View File
@@ -3,7 +3,13 @@
set -eu
set -o pipefail
SERVER="tonic-interop/bin/darwin/server"
case "$OSTYPE" in
darwin*) OS="darwin" ;;
linux*) OS="linux" ;;
*) exit 2 ;;
esac
SERVER="tonic-interop/bin/server_${OS}_amd64"
# run the test server
./"${SERVER}" &