From 200998076a80a66ad9e58e06cc348eeca5e9b318 Mon Sep 17 00:00:00 2001 From: Sergey Rubanov Date: Tue, 19 Sep 2023 20:58:36 +0200 Subject: [PATCH] chore(bin/install.sh): do not generate docs and tds on CI --- .github/workflows/ci.yml | 10 +++++----- bin/install.sh | 5 +++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 11b1ead5b8..3a58cfa081 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,7 +51,7 @@ jobs: - name: Build Socket Runtime run: | - VERBOSE=1 ./bin/install.sh + VERBOSE=1 NO_DOC_GEN=1 ./bin/install.sh ./bin/ci_version_check.sh - name: test a socket api example app @@ -87,7 +87,7 @@ jobs: - name: Build Socket Runtime run: | - VERBOSE=1 ./bin/install.sh + VERBOSE=1 NO_DOC_GEN=1 ./bin/install.sh ./bin/ci_version_check.sh - name: test a socket api example app @@ -174,7 +174,7 @@ jobs: - name: Build Socket Runtime run: | - VERBOSE=1 ./bin/install.sh + VERBOSE=1 NO_DOC_GEN=1 ./bin/install.sh ./bin/ci_version_check.sh - name: test a socket api example app @@ -220,7 +220,7 @@ jobs: - name: Build Socket Runtime run: | - VERBOSE=1 ./bin/install.sh + VERBOSE=1 NO_DOC_GEN=1 ./bin/install.sh ./bin/ci_version_check.sh env: VERBOSE: 1 @@ -304,7 +304,7 @@ jobs: run: | yes | sdkmanager --licenses > /dev/null sdkmanager --install 'ndk;25.0.8775105' 'build-tools;33.0.2' 'system-images;android-33;google_apis;x86_64' - VERBOSE=1 ./bin/install.sh + VERBOSE=1 NO_DOC_GEN=1 ./bin/install.sh ./bin/ci_version_check.sh env: CI: true diff --git a/bin/install.sh b/bin/install.sh index 15eb2741f7..0d6236aaea 100755 --- a/bin/install.sh +++ b/bin/install.sh @@ -1008,7 +1008,8 @@ fi _install_cli -# Generate docs and TypeScript definitions -npm run gen +if [[ -z $NO_DOC_GEN ]]; then + npm run gen +fi exit $?