Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

build & release binary package #542

build & release binary package

build & release binary package #542

Workflow file for this run

name: build & release binary package
on:
# push:
# branches:
# - master
schedule:
- cron: "0 12 * * *"
workflow_dispatch:
jobs:
collect:
runs-on: ubuntu-latest
outputs:
date: ${{steps.sys-info.outputs.date}}
steps:
- name: collect common info
shell: bash
id: sys-info
run: echo "::set-output name=date::$(date +"%Y-%m-%d")"
#--------
create-release-java8:
needs: collect
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create-release.outputs.upload_url }}
steps:
- name: Create release java-8
id: create-release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ needs.collect.outputs.date }}-java8-apache-iotdb
release_name: ${{ needs.collect.outputs.date }} java8 apache iotdb
body: java 8
draft: false
prerelease: false
#--------
create-release-java11:
runs-on: ubuntu-latest
needs: collect
outputs:
upload_url: ${{ steps.create-release.outputs.upload_url }}
steps:
- name: Create release java-11
id: create-release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ needs.collect.outputs.date }}-java11-apache-iotdb
release_name: ${{ needs.collect.outputs.date }} java11 apache iotdb
body: java 11
draft: false
prerelease: false
#--------
build-in-win:
needs: [ collect,create-release-java8,create-release-java11 ]
strategy:
fail-fast: false
max-parallel: 20
matrix:
iotdb_version: [ rel/0.12,rel/0.13,master ]
java_version: [ 8,11 ]
os: [ windows-2022 ]
# os: [ windows-2019,windows-2022 ]
runs-on: ${{ matrix.os }}
steps:
- name: Set java ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java_version }}
- name: download & unpack & install -> boost
shell: cmd
run: |
C:\msys64\usr\bin\wget.exe -O ${{ github.workspace }}/boost_1_78_0-bin.7z https://github.com/xiaoyekanren/iotdb-daily-build-dependence/releases/download/release-depend-bin/boost_1_78_0-bin.7z
7z x ${{ github.workspace }}/boost_1_78_0-bin.7z -o${{ github.workspace }}/boost_1_78_0
# C:\msys64\usr\bin\wget.exe -O ${{ github.workspace }}/boost_1_78_0.zip https://boostorg.jfrog.io/artifactory/main/release/1.78.0/source/boost_1_78_0.zip
# 7z x ${{ github.workspace }}/boost_1_78_0.zip -o${{ github.workspace }}/boost_1_78_0
# cd ${{ github.workspace }}/boost_1_78_0/boost_1_78_0
# .\bootstrap.bat
# .\b2
# echo "::set-output name=include::$(git branch |grep ^*|cut -d ' ' -f 2)"
# echo "::set-output name=library::$(git branch |grep ^*|cut -d ' ' -f 2)"
- name: download & unpack flex&bison
shell: cmd
run: |
C:\msys64\usr\bin\wget.exe -O ${{ github.workspace }}/win_flex_bison-latest.zip https://jaist.dl.sourceforge.net/project/winflexbison/win_flex_bison-latest.zip
7z x ${{ github.workspace }}/win_flex_bison-latest.zip -o${{ github.workspace }}/win_flex_bison-latest
- name: install openssl
run: |
choco install openssl
- name: Checkout apache/iotdb
uses: actions/checkout@v2
with:
path: iotdb
repository: 'apache/iotdb'
ref: ${{ matrix.iotdb_version }}
fetch-depth: 0
- name: Collect IoTDB info
id: iotdb-info
shell: bash
run: |
cd iotdb
echo "::set-output name=commit::$(git rev-parse --short HEAD)"
echo "::set-output name=branch::$(git branch |grep ^*|cut -d ' ' -f 2)"
echo "::set-output name=version::$(cat pom.xml | grep -e '^ <version>' | sed 's# ##g' | sed 's#<version>##g' | sed 's#</version>##g')"
- name: compile client-cpp
if: ${{ matrix.os == 'windows-2019' }}
shell: cmd
env:
boost-include-dir: ${{ github.workspace }}\boost_1_78_0\boost_1_78_0
boost-library.dir: ${{ github.workspace }}\boost_1_78_0\boost_1_78_0\stage\lib
cmake-url: https://github.com/Kitware/CMake/releases/download/v3.23.1/cmake-3.23.1-windows-x86_64.zip
cmake-root-dir : ${{ github.workspace }}\iotdb\compile-tools\thrift\target\cmake-3.23.1-windows-x86_64
run: |
cd ${{ github.workspace }}\iotdb
set Path=%Path%;${{ github.workspace }}\win_flex_bison-latest
set Path
mvn package -Dcmake.generator="Visual Studio 16 2019" -P compile-cpp -pl server,client-cpp,example/client-cpp-example -am -DskipTests -Dboost.include.dir="%boost-include-dir%" -Dboost.library.dir="%boost-library.dir%" -Dcmake.url="%cmake-url%" -Dcmake.root.dir="%cmake-root-dir%"
- name: compile client-cpp
if: ${{ matrix.os == 'windows-2022' }}
shell: cmd
env:
boost-include-dir: ${{ github.workspace }}\boost_1_78_0\boost_1_78_0
boost-library.dir: ${{ github.workspace }}\boost_1_78_0\boost_1_78_0\stage\lib
cmake-url: https://github.com/Kitware/CMake/releases/download/v3.23.1/cmake-3.23.1-windows-x86_64.zip
cmake-root-dir: ${{ github.workspace }}\iotdb\compile-tools\thrift\target\cmake-3.23.1-windows-x86_64
run: |
cd ${{ github.workspace }}\iotdb
set Path=%Path%;${{ github.workspace }}\win_flex_bison-latest
set Path
mvn package -Dcmake.generator="Visual Studio 17 2022" -P compile-cpp -pl server,client-cpp,example/client-cpp-example -am -DskipTests -Dboost.include.dir="%boost-include-dir%" -Dboost.library.dir="%boost-library.dir%" -Dcmake.url="%cmake-url%" -Dcmake.root.dir="%cmake-root-dir%"
#---client-cpp
- name: Upload apache-iotdb-client-cpp-${{ steps.iotdb-info.outputs.version }}-${{ steps.iotdb-info.outputs.commit }}-${{ matrix.os }}.zip
if: ${{ matrix.java_version == '8' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java8.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb/client-cpp/target/client-cpp-${{ steps.iotdb-info.outputs.version }}-cpp-windows-x86_64.zip
asset_name: apache-iotdb-${{ steps.iotdb-info.outputs.version }}-client-cpp-${{ steps.iotdb-info.outputs.commit }}-${{ matrix.os }}-x86_64.zip
asset_content_type: application/zip
- name: Upload apache-iotdb-client-cpp-${{ steps.iotdb-info.outputs.version }}-${{ steps.iotdb-info.outputs.commit }}-${{ matrix.os }}.zip
if: ${{ matrix.java_version == '11' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java11.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb/client-cpp/target/client-cpp-${{ steps.iotdb-info.outputs.version }}-cpp-windows-x86_64.zip
asset_name: apache-iotdb-${{ steps.iotdb-info.outputs.version }}-client-cpp-${{ steps.iotdb-info.outputs.commit }}-${{ matrix.os }}-x86_64.zip
asset_content_type: application/zip
#---
- name: compress client-cpp-example
shell: bash
run: |
cd iotdb/example/client-cpp-example/target
7z a client-cpp-example-${{ steps.iotdb-info.outputs.version }}-cpp-windows-x86_64.zip client CMakeLists.txt SessionExample.cpp
#---client-cpp-example
- name: Upload apache-iotdb-client-cpp-example-${{ steps.iotdb-info.outputs.version }}-${{ steps.iotdb-info.outputs.commit }}-${{ matrix.os }}.zip
if: ${{ matrix.java_version == '8' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java8.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb/example/client-cpp-example/target/client-cpp-example-${{ steps.iotdb-info.outputs.version }}-cpp-windows-x86_64.zip
asset_name: apache-iotdb-${{ steps.iotdb-info.outputs.version }}-client-cpp-example-${{ steps.iotdb-info.outputs.commit }}-${{ matrix.os }}-x86_64.zip
asset_content_type: application/zip
- name: Upload apache-iotdb-client-cpp-example-${{ steps.iotdb-info.outputs.version }}-${{ steps.iotdb-info.outputs.commit }}-${{ matrix.os }}.zip
if: ${{ matrix.java_version == '11' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java11.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb/example/client-cpp-example/target/client-cpp-example-${{ steps.iotdb-info.outputs.version }}-cpp-windows-x86_64.zip
asset_name: apache-iotdb-${{ steps.iotdb-info.outputs.version }}-client-cpp-example-${{ steps.iotdb-info.outputs.commit }}-${{ matrix.os }}-x86_64.zip
asset_content_type: application/zip
#---grafana-plugin
- name: compile grafana-plugin
if: ${{ matrix.os == 'windows-2022' && matrix.iotdb_version != 'rel/0.12' && matrix.java_version == '8'}}
shell: cmd
run: |
cd ${{ github.workspace }}\iotdb
mvn package -P compile-grafana-plugin -pl grafana-plugin -am -DskipTests
#--------
build-in-linux:
needs: [ collect,create-release-java8,create-release-java11 ]
strategy:
fail-fast: false
max-parallel: 20
matrix:
iotdb_version: [ rel/0.12,rel/0.13,master ]
java_version: [ 8,11 ]
runs-on: ubuntu-latest
steps:
- name: Set java ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java_version }}
- name: Checkout apache/iotdb
uses: actions/checkout@v2
with:
path: iotdb
repository: 'apache/iotdb'
ref: ${{ matrix.iotdb_version }}
fetch-depth: 0
- name: Collect IoTDB info
id: iotdb-info
run: |
cd ${{ github.workspace }}/iotdb
echo "::set-output name=commit::$(git rev-parse --short HEAD)"
echo "::set-output name=branch::$(git branch |grep ^*|cut -d ' ' -f 2)"
echo "::set-output name=version::$(cat pom.xml | grep -e '^ <version>' | sed 's# ##g' | sed 's#<version>##g' | sed 's#</version>##g')"
- name: Build Apache IoTDB binaries
run: |
cd ${{ github.workspace }}/iotdb
mvn clean package -DskipTests
#---all
- name: Upload apache-iotdb-${{ steps.iotdb-info.outputs.version }}-all-bin.zip
if: ${{ matrix.java_version == '8' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java8.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb/distribution/target/apache-iotdb-${{ steps.iotdb-info.outputs.version }}-all-bin.zip
asset_name: apache-iotdb-${{ steps.iotdb-info.outputs.version }}-all-bin-${{ steps.iotdb-info.outputs.commit }}.zip
asset_content_type: application/zip
- name: Upload apache-iotdb-${{ steps.iotdb-info.outputs.version }}-all-bin.zip
if: ${{ matrix.java_version == '11' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java11.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb/distribution/target/apache-iotdb-${{ steps.iotdb-info.outputs.version }}-all-bin.zip
asset_name: apache-iotdb-${{ steps.iotdb-info.outputs.version }}-all-bin-${{ steps.iotdb-info.outputs.commit }}.zip
asset_content_type: application/zip
#---server
- name: Upload apache-iotdb-${{ steps.iotdb-info.outputs.version }}-server-bin.zip
if: ${{ matrix.iotdb_version != 'master' && matrix.java_version == '8' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java8.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb/distribution/target/apache-iotdb-${{ steps.iotdb-info.outputs.version }}-server-bin.zip
asset_name: apache-iotdb-${{ steps.iotdb-info.outputs.version }}-server-bin-${{ steps.iotdb-info.outputs.commit }}.zip
asset_content_type: application/zip
- name: Upload apache-iotdb-${{ steps.iotdb-info.outputs.version }}-server-bin.zip
if: ${{ matrix.iotdb_version != 'master' && matrix.java_version == '11' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java11.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb/distribution/target/apache-iotdb-${{ steps.iotdb-info.outputs.version }}-server-bin.zip
asset_name: apache-iotdb-${{ steps.iotdb-info.outputs.version }}-server-bin-${{ steps.iotdb-info.outputs.commit }}.zip
asset_content_type: application/zip
#---cli
- name: Upload apache-iotdb-${{ steps.iotdb-info.outputs.version }}-cli-bin.zip
if: ${{ matrix.java_version == '8' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java8.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb/distribution/target/apache-iotdb-${{ steps.iotdb-info.outputs.version }}-cli-bin.zip
asset_name: apache-iotdb-${{ steps.iotdb-info.outputs.version }}-cli-bin-${{ steps.iotdb-info.outputs.commit }}.zip
asset_content_type: application/zip
- name: Upload apache-iotdb-${{ steps.iotdb-info.outputs.version }}-cli-bin.zip
if: ${{ matrix.java_version == '11' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java11.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb/distribution/target/apache-iotdb-${{ steps.iotdb-info.outputs.version }}-cli-bin.zip
asset_name: apache-iotdb-${{ steps.iotdb-info.outputs.version }}-cli-bin-${{ steps.iotdb-info.outputs.commit }}.zip
asset_content_type: application/zip
#---cluster
- name: Upload apache-iotdb-${{ steps.iotdb-info.outputs.version }}-cluster-bin.zip
if: ${{ matrix.iotdb_version != 'master' && matrix.java_version == '8' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java8.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb/distribution/target/apache-iotdb-${{ steps.iotdb-info.outputs.version }}-cluster-bin.zip
asset_name: apache-iotdb-${{ steps.iotdb-info.outputs.version }}-cluster-bin-${{ steps.iotdb-info.outputs.commit }}.zip
asset_content_type: application/zip
- name: Upload apache-iotdb-${{ steps.iotdb-info.outputs.version }}-cluster-bin.zip
if: ${{ matrix.iotdb_version != 'master' && matrix.java_version == '11'}}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java11.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb/distribution/target/apache-iotdb-${{ steps.iotdb-info.outputs.version }}-cluster-bin.zip
asset_name: apache-iotdb-${{ steps.iotdb-info.outputs.version }}-cluster-bin-${{ steps.iotdb-info.outputs.commit }}.zip
asset_content_type: application/zip
#---grafana-connector-0.12
- name: Upload apache-iotdb-${{ steps.iotdb-info.outputs.version }}-grafana-bin.zip
if: ${{ matrix.iotdb_version == 'rel/0.12' && matrix.java_version == '8' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java8.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb/distribution/target/apache-iotdb-${{ steps.iotdb-info.outputs.version }}-grafana-bin.zip
asset_name: apache-iotdb-${{ steps.iotdb-info.outputs.version }}-grafana-bin-${{ steps.iotdb-info.outputs.commit }}.zip
asset_content_type: application/zip
- name: Upload apache-iotdb-${{ steps.iotdb-info.outputs.version }}-grafana-bin.zip
if: ${{ matrix.iotdb_version == 'rel/0.12' && matrix.java_version == '11' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java11.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb/distribution/target/apache-iotdb-${{ steps.iotdb-info.outputs.version }}-grafana-bin.zip
asset_name: apache-iotdb-${{ steps.iotdb-info.outputs.version }}-grafana-bin-${{ steps.iotdb-info.outputs.commit }}.zip
asset_content_type: application/zip
#---grafana-connector
- name: Upload apache-iotdb-${{ steps.iotdb-info.outputs.version }}-grafana-connector-bin.zip
if: ${{ matrix.iotdb_version != 'master' && matrix.iotdb_version != 'rel/0.12' && matrix.java_version == '8' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java8.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb/distribution/target/apache-iotdb-${{ steps.iotdb-info.outputs.version }}-grafana-connector-bin.zip
asset_name: apache-iotdb-${{ steps.iotdb-info.outputs.version }}-grafana-connector-bin-${{ steps.iotdb-info.outputs.commit }}.zip
asset_content_type: application/zip
- name: Upload apache-iotdb-${{ steps.iotdb-info.outputs.version }}-grafana-connector-bin.zip
if: ${{ matrix.iotdb_version != 'master' && matrix.iotdb_version != 'rel/0.12' && matrix.java_version == '11' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java11.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb/distribution/target/apache-iotdb-${{ steps.iotdb-info.outputs.version }}-grafana-connector-bin.zip
asset_name: apache-iotdb-${{ steps.iotdb-info.outputs.version }}-grafana-connector-bin-${{ steps.iotdb-info.outputs.commit }}.zip
asset_content_type: application/zip
#---grafana-plugin
- name: Upload apache-iotdb-${{ steps.iotdb-info.outputs.version }}-grafana-plugin-bin.zip
if: ${{ matrix.iotdb_version != 'rel/0.12' && matrix.java_version == '8' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java8.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb/distribution/target/apache-iotdb-${{ steps.iotdb-info.outputs.version }}-grafana-plugin-bin.zip
asset_name: apache-iotdb-${{ steps.iotdb-info.outputs.version }}-grafana-plugin-bin-${{ steps.iotdb-info.outputs.commit }}.zip
asset_content_type: application/zip
- name: Upload apache-iotdb-${{ steps.iotdb-info.outputs.version }}-grafana-plugin-bin.zip
if: ${{ matrix.iotdb_version != 'rel/0.12' && matrix.java_version == '11' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java11.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb/distribution/target/apache-iotdb-${{ steps.iotdb-info.outputs.version }}-grafana-plugin-bin.zip
asset_name: apache-iotdb-${{ steps.iotdb-info.outputs.version }}-grafana-plugin-bin-${{ steps.iotdb-info.outputs.commit }}.zip
asset_content_type: application/zip
#--------
build-benchmark:
needs: [ collect,create-release-java8,create-release-java11 ]
strategy:
fail-fast: false
max-parallel: 20
matrix:
java_version: [ 8,11 ]
runs-on: ubuntu-latest
steps:
- name: Set java ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java_version }}
- name: Checkout iotdb-master
uses: actions/checkout@v2
with:
path: iotdb-master
repository: 'apache/iotdb'
ref: master
fetch-depth: 0
- name: Checkout iotdb-rel0.12
uses: actions/checkout@v2
with:
path: iotdb-rel0.12
repository: 'apache/iotdb'
ref: rel/0.12
fetch-depth: 0
- name: Checkout iotdb-rel0.13
uses: actions/checkout@v2
with:
path: iotdb-rel0.13
repository: 'apache/iotdb'
ref: rel/0.13
fetch-depth: 0
- name: compile iotdb
run: |
cd ${{ github.workspace }}/iotdb-master
mvn clean package -DskipTests
cd ${{ github.workspace }}/iotdb-rel0.12
mvn clean package -DskipTests
cd ${{ github.workspace }}/iotdb-rel0.13
mvn clean package -DskipTests
- name: Checkout iotdb-benchmark
uses: actions/checkout@v2
with:
path: iotdb-benchmark
repository: 'thulab/iotdb-benchmark'
ref: master
fetch-depth: 0
- name: Collect benchmark info
id: benchmark-info
run: |
cd ${{ github.workspace }}/iotdb-benchmark
echo "::set-output name=commit::$(git rev-parse --short HEAD)"
- name: Build benchmark binaries
id: compile-benchmark
run: |
cd ${{ github.workspace }}/iotdb-benchmark
if [ "${{ matrix.java_version }}" = "8" ]; then
mvn clean package -Dmaven.test.skip=True
elif [ "${{ matrix.java_version }}" = "11" ]; then
mvn clean package -pl core,influxdb,influxdb-2.0,kairosdb,opentsdb,tdengine,timescaledb,iotdb-0.13,iotdb-0.12,iotdb-0.11,mssqlserver,sqlite -Dmaven.test.skip=true
fi
#---0.11
- name: Upload benchmark-iotdb-0.11
if: ${{ matrix.java_version == '8' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java8.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb-benchmark/iotdb-0.11/target/iotdb-0.11-0.0.1.zip
asset_name: benchmark-iotdb-0.11-${{ steps.benchmark-info.outputs.commit }}.zip
asset_content_type: application/zip
- name: Upload benchmark-iotdb-0.11
if: ${{ matrix.java_version == '11' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java11.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb-benchmark/iotdb-0.12/target/iotdb-0.12-0.0.1.zip
asset_name: benchmark-iotdb-0.11-${{ steps.benchmark-info.outputs.commit }}.zip
asset_content_type: application/zip
#---0.12
- name: Upload benchmark-iotdb-0.12
if: ${{ matrix.java_version == '8' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java8.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb-benchmark/iotdb-0.12/target/iotdb-0.12-0.0.1.zip
asset_name: benchmark-iotdb-0.12-${{ steps.benchmark-info.outputs.commit }}.zip
asset_content_type: application/zip
- name: Upload benchmark-iotdb-0.12
if: ${{ matrix.java_version == '11' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java11.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb-benchmark/iotdb-0.12/target/iotdb-0.12-0.0.1.zip
asset_name: benchmark-iotdb-0.12-${{ steps.benchmark-info.outputs.commit }}.zip
asset_content_type: application/zip
#---0.13
- name: Upload benchmark-iotdb-0.13
if: ${{ matrix.java_version == '8' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java8.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb-benchmark/iotdb-0.13/target/iotdb-0.13-0.0.1.zip
asset_name: benchmark-iotdb-0.13-${{ steps.benchmark-info.outputs.commit }}.zip
asset_content_type: application/zip
- name: Upload benchmark-iotdb-0.13
if: ${{ matrix.java_version == '11' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java11.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb-benchmark/iotdb-0.13/target/iotdb-0.13-0.0.1.zip
asset_name: benchmark-iotdb-0.13-${{ steps.benchmark-info.outputs.commit }}.zip
asset_content_type: application/zip
#---tdengine
- name: Upload benchmark-tdengine
if: ${{ matrix.java_version == '8' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java8.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb-benchmark/tdengine/target/tdengine-0.0.1.zip
asset_name: benchmark-tdengine-${{ steps.benchmark-info.outputs.commit }}.zip
asset_content_type: application/zip
- name: Upload benchmark-tdengine
if: ${{ matrix.java_version == '11' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java11.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb-benchmark/tdengine/target/tdengine-0.0.1.zip
asset_name: benchmark-tdengine-${{ steps.benchmark-info.outputs.commit }}.zip
asset_content_type: application/zip
#---influxdb
- name: Upload benchmark-influxdb
if: ${{ matrix.java_version == '8' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java8.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb-benchmark/influxdb/target/influxdb-0.0.1.zip
asset_name: benchmark-influxdb-${{ steps.benchmark-info.outputs.commit }}.zip
asset_content_type: application/zip
- name: Upload benchmark-influxdb
if: ${{ matrix.java_version == '11' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java11.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb-benchmark/influxdb/target/influxdb-0.0.1.zip
asset_name: benchmark-influxdb-${{ steps.benchmark-info.outputs.commit }}.zip
asset_content_type: application/zip
#---influxdb2.0
- name: Upload benchmark-influxdb2.0
if: ${{ matrix.java_version == '8' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java8.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb-benchmark/influxdb-2.0/target/influxdb-2.0-0.0.1.zip
asset_name: benchmark-influxdb-2.0-${{ steps.benchmark-info.outputs.commit }}.zip
asset_content_type: application/zip
- name: Upload benchmark-influxdb2.0
if: ${{ matrix.java_version == '11' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java11.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb-benchmark/influxdb-2.0/target/influxdb-2.0-0.0.1.zip
asset_name: benchmark-influxdb-2.0-${{ steps.benchmark-info.outputs.commit }}.zip
asset_content_type: application/zip
#---timescaledb
- name: Upload benchmark-timescaledb
if: ${{ matrix.java_version == '8' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java8.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb-benchmark/timescaledb/target/timescaledb-0.0.1.zip
asset_name: benchmark-timescaledb-${{ steps.benchmark-info.outputs.commit }}.zip
asset_content_type: application/zip
- name: Upload benchmark-timescaledb
if: ${{ matrix.java_version == '11' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java11.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb-benchmark/timescaledb/target/timescaledb-0.0.1.zip
asset_name: benchmark-timescaledb-${{ steps.benchmark-info.outputs.commit }}.zip
asset_content_type: application/zip
#---mssqlserver
- name: Upload benchmark-mssqlserver
if: ${{ matrix.java_version == '8' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java8.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb-benchmark/mssqlserver/target/mssqlserver-0.0.1.zip
asset_name: benchmark-mssqlserver-${{ steps.benchmark-info.outputs.commit }}.zip
asset_content_type: application/zip
- name: Upload benchmark-mssqlserver
if: ${{ matrix.java_version == '11' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java11.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb-benchmark/mssqlserver/target/mssqlserver-0.0.1.zip
asset_name: benchmark-mssqlserver-${{ steps.benchmark-info.outputs.commit }}.zip
asset_content_type: application/zip
#---opentsdb
- name: Upload benchmark-opentsdb
if: ${{ matrix.java_version == '8' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java8.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb-benchmark/opentsdb/target/opentsdb-0.0.1.zip
asset_name: benchmark-opentsdb-${{ steps.benchmark-info.outputs.commit }}.zip
asset_content_type: application/zip
- name: Upload benchmark-opentsdb
if: ${{ matrix.java_version == '11' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release-java11.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb-benchmark/opentsdb/target/opentsdb-0.0.1.zip
asset_name: benchmark-opentsdb-${{ steps.benchmark-info.outputs.commit }}.zip
asset_content_type: application/zip