-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
136 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Build Debian package | ||
on: | ||
push: | ||
branches: | ||
- main | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
build-deb-package: | ||
strategy: | ||
matrix: | ||
target: | ||
- { python: "3.6.15", ubuntu: 20.04 } | ||
- { python: "3.10.12", ubuntu: 22.04 } | ||
runs-on: ubuntu-${{ matrix.target.ubuntu }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: set up python ${{ matrix.target.python }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.target.python }} | ||
cache: pip | ||
|
||
- name: build amd64 package | ||
# language=sh | ||
run: | | ||
sed -i -E -e "s/amd64|arm64/amd64/g" debian/control debian/rules | ||
make build-deb-package | ||
- name: build arm64 package | ||
uses: uraimo/run-on-arch-action@v2 | ||
with: | ||
arch: aarch64 | ||
distro: ubuntu${{ matrix.target.ubuntu }} | ||
githubToken: ${{ github.token }} | ||
# language=sh | ||
setup: | | ||
mkdir -p "${PWD}/artifacts" | ||
# language=sh | ||
dockerRunArgs: | | ||
--volume "${PWD}/artifacts:/artifacts" | ||
# language=sh | ||
shell: /bin/sh | ||
# language=sh | ||
install: | | ||
apt-get update -q -y | ||
apt-get install -q -y git python3=${{ matrix.target.python }} python3-venv python3-pip debhelper devscripts | ||
# language=sh | ||
run: | | ||
sed -i -E -e "s/amd64|arm64/arm64/g" debian/control debian/rules | ||
make build-deb-package | ||
mv ../mdb-ch-tools*.deb /artifacts/mdb-ch-tools_py${{ matrix.target.python }}_arm64.deb | ||
echo "Produced artifact: `ls /artifacts/`" | ||
- name: upload amd64 artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: mdb-ch-tools_py${{ matrix.target.python }}_amd64.deb | ||
path: ../mdb-ch-tools*.deb | ||
if-no-files-found: error | ||
|
||
- name: upload arm64 artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: mdb-ch-tools_py${{ matrix.target.python }}_arm64.deb | ||
path: artifacts/mdb-ch-tools*.deb | ||
if-no-files-found: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ cython_debug/ | |
tests/staging/ | ||
tests/reports/ | ||
.session_conf.sav | ||
version.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ Uploaders: Alexander Burmak <[email protected]>, | |
Aleksei Filatov <[email protected]>, | ||
Evgenii Kopanev <[email protected]>, | ||
Mikhail Kot <[email protected]> | ||
Build-Depends: debhelper (>= 8.0.0), python3, python3-venv, python3-pip, python3-setuptools | ||
Build-Depends: debhelper (>= 9.0.0), python3, python3-venv, python3-pip, python3-setuptools | ||
Standards-Version: 4.1.4 | ||
Homepage: https://github.com/yandex/ch-tools | ||
Vcs-Browser: https://github.com/yandex/ch-tools.git | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,8 @@ build-backend = "flit_core.buildapi" | |
|
||
[project] | ||
name = "chtools" | ||
version = "1.0.0" | ||
description = "A set of tools for administration and diagnostics of ClickHouse DBMS." | ||
license = { file = "LICENSE" } | ||
dynamic = ["version", "description"] | ||
|
||
authors = [ | ||
{name = "Alexander Burmak", email = "[email protected]"}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
"""A set of tools for administration and diagnostics of ClickHouse DBMS.""" | ||
|
||
__version__ = "1.0.0" |