Add cross compiled interop servers
This commit is contained in:
@@ -5,7 +5,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [macOS-latest]
|
os: [ubuntu-latest, macOS-latest]
|
||||||
rust: [nightly]
|
rust: [nightly]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -13,7 +13,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
rust-version: ${{ matrix.rust }}
|
rust-version: ${{ matrix.rust }}
|
||||||
- uses: actions/checkout@master
|
- 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
|
- name: Run tests
|
||||||
run: cargo test --all --verbose
|
run: cargo test --all
|
||||||
- name: Run interop tests
|
- name: Run interop tests
|
||||||
run: ./tonic-interop/test.sh
|
run: ./tonic-interop/test.sh
|
||||||
|
|||||||
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
@@ -3,7 +3,13 @@
|
|||||||
set -eu
|
set -eu
|
||||||
set -o pipefail
|
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
|
# run the test server
|
||||||
./"${SERVER}" &
|
./"${SERVER}" &
|
||||||
|
|||||||
Reference in New Issue
Block a user