├── .github └── workflows │ └── python-app.yml └── README.md /.github/workflows/python-app.yml: -------------------------------------------------------------------------------- 1 | name: CHDB CLI Builder 2 | 3 | on: 4 | workflow_dispatch: 5 | inputs: 6 | TAG_NAME: 7 | description: 'Release Version Tag' 8 | required: true 9 | release: 10 | types: [created] 11 | 12 | jobs: 13 | build: 14 | runs-on: ubuntu-latest 15 | steps: 16 | - uses: actions/checkout@v3 17 | - name: Set up Python 3.10 18 | uses: actions/setup-python@v3 19 | with: 20 | python-version: "3.10" 21 | - name: Install dependencies 22 | run: | 23 | python -m pip install --upgrade pip pyinstaller 24 | if [ -f requirements.txt ]; then pip install -r requirements.txt; fi 25 | - name: Build Binary 26 | run: | 27 | pyinstaller chdb-cli.py --strip --noupx --onefile --nowindow 28 | - uses: alice-biometrics/release-creator/@v1.0.5 29 | continue-on-error: true 30 | with: 31 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 32 | version: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} 33 | description: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} 34 | - name: Upload release 35 | if: github.event_name != 'pull_request' 36 | uses: boxpositron/upload-multiple-releases@1.0.7 37 | env: 38 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 39 | with: 40 | release_config: | 41 | ./dist/chdb-cli 42 | tag_name: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} 43 | release_name: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} 44 | draft: false 45 | prerelease: false 46 | overwrite: true 47 | 48 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ### Use [chdb-go-cli](https://github.com/chdb-io/chdb-go) instead 2 | --------------------------------------------------------------------------------