Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/JackTan25/databend
Browse files Browse the repository at this point in the history
  • Loading branch information
JackTan25 committed Aug 24, 2023
2 parents 668cf99 + ad2bc7f commit 95527a3
Show file tree
Hide file tree
Showing 146 changed files with 2,232 additions and 1,823 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/bindings_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
GIT_TAG=${{ inputs.tag }}
fi
VERSION=`echo ${GIT_TAG} | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+'`
echo "building tag and version: $GIT_TAG $VERSION"
sed "s#version = \"0.0.0\"#version = \"$VERSION\"#g" Cargo.toml > Cargo.toml.bak
mv Cargo.toml.bak Cargo.toml
Expand Down Expand Up @@ -113,14 +114,15 @@ jobs:
path: src/bendpy/dist/*.whl

release:
if: github.event_name != 'pull_request'
# publish release only the version endsWith 0
if: endsWith(inputs.tag, '0')
name: Publish to PyPI
needs: builds
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_password }}
skip_existing: true
skip-existing: true
2 changes: 1 addition & 1 deletion .github/workflows/cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ jobs:
source: pr
source_id: ${{ github.event.pull_request.number }}
version: ${{ needs.docker.outputs.tag }}
runner_provider: gcp
runner_provider: aws
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ jobs:
source: release
source_id: ${{ needs.create_release.outputs.version }}
version: ${{ needs.create_release.outputs.version }}
runner_provider: gcp
runner_provider: aws

bindings_python:
needs: create_release
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reuse.benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ on:
description: 'Self-hosted runner provider, aws or gcp'
type: string
required: true
default: 'aws'

permissions:
id-token: write
Expand All @@ -41,7 +40,7 @@ env:

jobs:
local:
if: inputs.runner_provider == 'aws'
if: inputs.runner_provider == 'aws' && inputs.source == 'release'
timeout-minutes: 60
runs-on: [self-hosted, X64, Linux, 16c32g, "${{ inputs.runner_provider }}"]
strategy:
Expand Down Expand Up @@ -73,6 +72,7 @@ jobs:
version=${{ inputs.source_id }}
target=x86_64-unknown-linux-gnu
mkdir -p ./distro/
mkdir -p ./target/release/
gh release download ${version} --pattern "databend-${version}-${target}.tar.gz" --dir distro/
tar x -C ./target/release -f ./distro/databend-${version}-${target}.tar.gz --strip-components 1 bin/
chmod +x ./target/release/databend-*
Expand Down
Loading

0 comments on commit 95527a3

Please sign in to comment.