Skip to content

Commit

Permalink
update release
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxiaoying committed Nov 5, 2021
1 parent 33a2ce0 commit a10710d
Showing 1 changed file with 57 additions and 63 deletions.
120 changes: 57 additions & 63 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,9 @@ jobs:

- name: Install tools
run: |
yum install -y wget
wget https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-14.noarch.rpm
rpm -ivh epel-release-7-14.noarch.rpm
yum install -y freetds-devel
pip install poetry
cargo install just
yum install -y openssl11-devel mysql-devel postgresql-devel
yum install -y openssl11-devel mysql-devel postgresql-devel freetds-devel
ln -sfn /usr/lib64/pkgconfig/openssl11.pc /usr/lib64/pkgconfig/openssl.pc
ln -sfn /usr/lib64/pkgconfig/libssl11.pc /usr/lib64/pkgconfig/libssl.pc
Expand All @@ -70,61 +65,61 @@ jobs:
name: "linux-${{ matrix.python-version }}"
path: connectorx-python/dist/*.whl

# win32:
# runs-on: windows-latest
# strategy:
# matrix:
# python-version: ["3.7", "3.8", "3.9", "3.10"]
# steps:
# - uses: actions/checkout@v2

# - uses: ankane/setup-mysql@v1
# with:
# mysql-version: 8

# - name: Setup python
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}
# architecture: x64

# - name: Check which python we use
# run: |
# echo $(which python)

# - name: Install Rust
# uses: actions-rs/toolchain@v1
# with:
# toolchain: nightly-2021-05-30
# components: rustfmt
# default: true

# - name: Install tools
# run: |
# pip install poetry
# cargo install cargo-quickinstall
# cargo quickinstall just

# - name: Setup project
# run: |
# just bootstrap-python
# just ci-build-python-extention
# echo "Content of the source folder"
# ls connectorx-python/connectorx
# env:
# SQLITE3_STATIC: 1

# - name: Build wheel
# run: |
# just ci-build-python-wheel ci-rename-wheel
# echo "Built artifacts"
# ls connectorx-python/dist

# - name: Persist artifacts
# uses: actions/upload-artifact@v2
# with:
# name: "windows-${{ matrix.python-version }}"
# path: connectorx-python/dist/*.whl
win32:
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v2

- uses: ankane/setup-mysql@v1
with:
mysql-version: 8

- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64

- name: Check which python we use
run: |
echo $(which python)
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2021-05-30
components: rustfmt
default: true

- name: Install tools
run: |
pip install poetry
cargo install cargo-quickinstall
cargo quickinstall just
- name: Setup project
run: |
just bootstrap-python
just ci-build-python-extention
echo "Content of the source folder"
ls connectorx-python/connectorx
env:
SQLITE3_STATIC: 1

- name: Build wheel
run: |
just ci-build-python-wheel ci-rename-wheel
echo "Built artifacts"
ls connectorx-python/dist
- name: Persist artifacts
uses: actions/upload-artifact@v2
with:
name: "windows-${{ matrix.python-version }}"
path: connectorx-python/dist/*.whl

darwin:
runs-on: macos-10.15
Expand Down Expand Up @@ -191,8 +186,7 @@ jobs:

upload:
runs-on: ubuntu-latest
# needs: [win32, darwin, linux]
needs: [darwin, linux]
needs: [win32, darwin, linux]
steps:
- name: Download all artifacts
uses: actions/download-artifact@v2
Expand Down

2 comments on commit a10710d

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ConnectorX TPC-H Scale@1 Benchmarks

Benchmark suite Current: a10710d Previous: 77438d0 Ratio
connectorx/tests/benchmarks.py::bench_mysql 0.06777122331052658 iter/sec (stddev: 0.36437254444651457) 0.06744616873771102 iter/sec (stddev: 0.2916237262408012) 1.00
connectorx/tests/benchmarks.py::bench_postgres 0.08731676626551373 iter/sec (stddev: 1.9912104558063393) 0.07417239903875457 iter/sec (stddev: 2.9415067043761733) 0.85

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ConnectorX TPC-H Scale@1 Benchmarks

Benchmark suite Current: a10710d Previous: 77438d0 Ratio
connectorx/tests/benchmarks.py::bench_mysql 0.0654021976683567 iter/sec (stddev: 0.6670761761618038) 0.06744616873771102 iter/sec (stddev: 0.2916237262408012) 1.03
connectorx/tests/benchmarks.py::bench_postgres 0.07456568481245497 iter/sec (stddev: 2.155062630146363) 0.07417239903875457 iter/sec (stddev: 2.9415067043761733) 0.99

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.