This is an automated email from the ASF dual-hosted git repository. haonan pushed a commit to branch mingw-boost in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit e8a7c482e20a2b4c51cd5276a724d44c41626686 Author: HTHou <[email protected]> AuthorDate: Thu Jul 25 16:38:25 2024 +0800 try boost mingw --- .github/workflows/multi-language-client.yml | 65 ++--------------------------- pom.xml | 4 +- 2 files changed, 5 insertions(+), 64 deletions(-) diff --git a/.github/workflows/multi-language-client.yml b/.github/workflows/multi-language-client.yml index 4d323e9bb41..ce559eb80b1 100644 --- a/.github/workflows/multi-language-client.yml +++ b/.github/workflows/multi-language-client.yml @@ -4,6 +4,7 @@ on: branches: - master - "rel/*" + - mingw-boost paths-ignore: - 'docs/**' - 'site/**' @@ -32,7 +33,7 @@ jobs: fail-fast: false max-parallel: 15 matrix: - os: [ubuntu-latest, macos-latest, windows-latest] + os: [windows-latest] runs-on: ${{ matrix.os}} steps: @@ -53,9 +54,7 @@ jobs: if: matrix.os == 'windows-latest' run: | choco install winflexbison3 - choco install boost-msvc-14.3 - $boost_path = (Get-ChildItem -Path 'C:\local\' -Filter 'boost_*').FullName - echo $boost_path >> $env:GITHUB_PATH + pacman -S mingw-w64-x86_64-boost - name: Cache Maven packages uses: actions/cache@v4 with: @@ -79,64 +78,6 @@ 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 . diff --git a/pom.xml b/pom.xml index d8dae21d723..dd3aa9ab775 100644 --- a/pom.xml +++ b/pom.xml @@ -1482,7 +1482,7 @@ </activation> <properties> <!-- The generated code relied on Boost and that relies on VS and can't be built with MinGW --> - <cmake.generator>Visual Studio 17 2022</cmake.generator> + <cmake.generator>MinGW Makefiles</cmake.generator> <os.classifier>windows-x86_64</os.classifier> <thrift.executable>Release/thrift.exe</thrift.executable> </properties> @@ -1497,7 +1497,7 @@ </activation> <properties> <!-- The generated code relied on Boost and that relies on VS and can't be built with MinGW --> - <cmake.generator>Visual Studio 17 2022</cmake.generator> + <cmake.generator>MinGW Makefiles</cmake.generator> <os.classifier>windows-aarch64</os.classifier> <thrift.executable>Release/thrift.exe</thrift.executable> </properties>
