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..7b575bb --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,53 @@ +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: [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*" + CIBW_BEFORE_ALL_MACOS: brew install mariadb + + - 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 +