From c35329d21007358e16d7b332507f7bb6a1a93f5c Mon Sep 17 00:00:00 2001 From: Gleb Date: Fri, 13 Dec 2024 15:37:43 -0800 Subject: [PATCH] windows... --- .github/workflows/bindings-ts.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bindings-ts.yml b/.github/workflows/bindings-ts.yml index fd8b6d747..e7cbe0359 100644 --- a/.github/workflows/bindings-ts.yml +++ b/.github/workflows/bindings-ts.yml @@ -78,15 +78,26 @@ jobs: sudo systemctl status docker.service sudo docker run hello-world shell: wsl-run {0} - - name: Run quickstart - run: | + - run: | + docker run -d --name quickstart -p 8000:8000 -e ENABLE_LOGS=true -e NETWORK=local -e ENABLE_SOROBAN_RPC=true --health-cmd "curl --no-progress-meter --fail-with-body -X POST \"http://localhost:8000/soroban/rpc\" -H 'Content-Type: application/json' -d '{\"jsonrpc\":\"2.0\",\"id\":8675309,\"method\":\"getNetwork\"}' && curl --no-progress-meter \"http://localhost:8000/friendbot\" | grep '\"invalid_field\": \"addr\"'" --health-interval 10s --health-timeout 5s --health-retries 50 stellar/quickstart:testing + if: runner.os != 'windows' + shell: bash + - run: | + until [ "`docker inspect -f {{.State.Health.Status}} quickstart`"=="healthy" ]; do + sleep 0.1; + done; + if: runner.os != 'windows' + shell: bash + - run: | docker run -d --name quickstart -p 8000:8000 -e ENABLE_LOGS=true -e NETWORK=local -e ENABLE_SOROBAN_RPC=true --health-cmd "curl --no-progress-meter --fail-with-body -X POST \"http://localhost:8000/soroban/rpc\" -H 'Content-Type: application/json' -d '{\"jsonrpc\":\"2.0\",\"id\":8675309,\"method\":\"getNetwork\"}' && curl --no-progress-meter \"http://localhost:8000/friendbot\" | grep '\"invalid_field\": \"addr\"'" --health-interval 10s --health-timeout 5s --health-retries 50 stellar/quickstart:testing - shell: ${{ matrix.sys.shell }} + if: runner.os == 'windows' + shell: wsl-run {0} - run: | until [ "`docker inspect -f {{.State.Health.Status}} quickstart`"=="healthy" ]; do sleep 0.1; done; - shell: ${{ matrix.sys.shell }} + if: runner.os == 'windows' + shell: wsl-run {0} - run: rustup update - run: cargo build - run: rustup target add wasm32-unknown-unknown