This is an automated email from the ASF dual-hosted git repository. haonan pushed a commit to branch try_earlier_os_cpp in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 9e5e6b41583d188d129fd1dcdf3083fb5ff338f2 Author: HTHou <[email protected]> AuthorDate: Mon Aug 5 23:08:08 2024 +0800 try build cpp client on earler os --- .github/workflows/multi-language-client.yml | 66 ++--------------------------- 1 file changed, 4 insertions(+), 62 deletions(-) diff --git a/.github/workflows/multi-language-client.yml b/.github/workflows/multi-language-client.yml index 98991220d55..7862454abd5 100644 --- a/.github/workflows/multi-language-client.yml +++ b/.github/workflows/multi-language-client.yml @@ -4,6 +4,7 @@ on: branches: - master - "rc/*" + - try_earlier_os_cpp paths: - 'pom.xml' - 'iotdb-client/pom.xml' @@ -44,13 +45,13 @@ jobs: fail-fast: false max-parallel: 15 matrix: - os: [ubuntu-latest, macos-latest, windows-latest] + os: [ubuntu-20.04, windows-2019] runs-on: ${{ matrix.os}} steps: - uses: actions/checkout@v4 - name: Install CPP Dependencies (Ubuntu) - if: matrix.os == 'ubuntu-latest' + if: matrix.os == 'ubuntu-20.04' shell: bash run: | sudo apt-get update @@ -62,7 +63,7 @@ jobs: brew install boost brew install bison - name: Install CPP Dependencies (Windows) - if: matrix.os == 'windows-latest' + if: matrix.os == 'windows-2019' run: | choco install winflexbison3 choco install boost-msvc-14.3 @@ -91,64 +92,5 @@ jobs: path: iotdb-client/client-cpp/target/build/test/Testing retention-days: 1 - go: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - with: - token: ${{secrets.GITHUB_TOKEN}} - submodules: recursive - - name: Cache Maven packages - uses: actions/cache@v4 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-m2- - - name: Compile IoTDB Server - run: mvn clean package -pl distribution -am -DskipTests - - name: Integration test - shell: bash - run: | - cd iotdb-client - git clone https://github.com/apache/iotdb-client-go.git - cd iotdb-client-go - make e2e_test_for_parent_git_repo e2e_test_clean_for_parent_git_repo - - python: - strategy: - fail-fast: false - max-parallel: 15 - matrix: - python: [ '3.6', '3.x' ] - runs-on: ${{ (matrix.python == '3.6' && 'ubuntu-20.04') || 'ubuntu-latest' }} - - steps: - - uses: actions/checkout@v4 - - name: Cache Maven packages - uses: actions/cache@v4 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-m2- - - name: Build IoTDB server distribution zip and python client - run: mvn -B clean install -pl distribution,iotdb-client/client-py -am -DskipTests - - name: Build IoTDB server docker image - run: | - docker build . -f docker/src/main/Dockerfile-1c1d -t "iotdb:dev" - docker images - - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python }} - - name: Install IoTDB python client requirements - run: pip3 install -r iotdb-client/client-py/requirements_dev.txt - - name: Check code style - if: ${{ matrix.python == '3.x'}} - shell: bash - run: black iotdb-client/client-py/ --check --diff - - name: Integration test - shell: bash - run: | - cd iotdb-client/client-py/ && pytest .
