From b3ae33f7d56448ca2eddaa41f1ccdac3c696d36f 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 09:51:41 +0700 Subject: [PATCH] Add hiredis 2.0.0 cp310 --- .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..4d1a0ff --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,52 @@ +name: hiredis 2.0.0 + +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, windows-2019, 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/0c/39/eae11344d69ba435ec13d6bcc1a9eea3d2278324506fcd0e52d1ed8958c8/hiredis-2.0.0.tar.gz -o hiredis-2.0.0.tar.gz + tar -zxf hiredis-2.0.0.tar.gz + mv hiredis-2.0.0/* . + + - 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: hiredis 2.0.0' + files: wheelhouse/*.whl + tag_name: hiredis-2.0.0 +