From 88a85257b328eff355f984c33861887b091b49c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ng=C3=B4=20Ng=E1=BB=8Dc=20=C4=90=E1=BB=A9c=20Huy?= Date: Sat, 7 May 2022 10:21:29 +0700 Subject: [PATCH 1/3] mariadb: add build for 1.0.11 --- .github/workflows/.gitkeep | 0 .github/workflows/build.yml | 52 +++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) delete mode 100644 .github/workflows/.gitkeep create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/.gitkeep b/.github/workflows/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..ca0cc54 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,52 @@ +name: mariadb 1.0.11 + +defaults: + run: + shell: bash + +on: pull_request + +jobs: + build_wheels: + name: Build wheels on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-20.04, macos-10.15] + + steps: + - uses: actions/checkout@v2 + + # Used to host cibuildwheel + - uses: actions/setup-python@v2 + + - name: Install cibuildwheel + run: python -m pip install cibuildwheel==2.1.2 + + - name: Fetch source distribution + run: | + curl https://files.pythonhosted.org/packages/37/0a/ce5724f852f2937c6955bcea09659aa2d85d487df1c9de6711344b71527d/mariadb-1.0.11.zip -o mariadb-1.0.11.zip + unzip mariadb-1.0.11.zip + mv mariadb-1.0.11/* . + + - name: Build wheels + run: python -m cibuildwheel --output-dir wheelhouse + env: + CIBW_PROJECT_REQUIRES_PYTHON: ">=3.7" + CIBW_BUILD: "cp*" + + - name: Checksum + uses: Huy-Ngo/gha-sha@v1.1.0 + with: + glob: 'wheelhouse/*.whl' + - uses: actions/upload-artifact@v2 + with: + path: wheelhouse/*.whl + + - name: Release + uses: softprops/action-gh-release@v1 + with: + name: 'Release: mariadb 1.0.11' + files: wheelhouse/*.whl + tag_name: mariadb-1.0.11 + From e66cd0a092ee9df9672371e52d950482d9940e75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ng=C3=B4=20Ng=E1=BB=8Dc=20=C4=90=E1=BB=A9c=20Huy?= Date: Sat, 7 May 2022 10:25:34 +0700 Subject: [PATCH 2/3] add deps --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ca0cc54..8ebf109 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,6 +34,8 @@ jobs: env: CIBW_PROJECT_REQUIRES_PYTHON: ">=3.7" CIBW_BUILD: "cp*" + CIBW_BEFORE_ALL_MACOS: brew install mariadb + CIBW_BEFORE_ALL_LINUX: yum install mariadb mariadb-connector-c - name: Checksum uses: Huy-Ngo/gha-sha@v1.1.0 From 76e6cfb0ba8e588c9757931c21c83ceb614b1317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ng=C3=B4=20Ng=E1=BB=8Dc=20=C4=90=E1=BB=A9c=20Huy?= Date: Sat, 7 May 2022 10:31:09 +0700 Subject: [PATCH 3/3] remove linux --- .github/workflows/build.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8ebf109..7b575bb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-20.04, macos-10.15] + os: [macos-10.15] steps: - uses: actions/checkout@v2 @@ -35,7 +35,6 @@ jobs: CIBW_PROJECT_REQUIRES_PYTHON: ">=3.7" CIBW_BUILD: "cp*" CIBW_BEFORE_ALL_MACOS: brew install mariadb - CIBW_BEFORE_ALL_LINUX: yum install mariadb mariadb-connector-c - name: Checksum uses: Huy-Ngo/gha-sha@v1.1.0