Skip to content

GitHub Actions workflow updated and caching fixed, Revert back to MariaDB Connector C 3.1.9 #455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions .github/workflows/windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,22 @@ name: Build windows wheels

on:
push:
branches:
- master
create:
workflow_dispatch:

jobs:
build:
runs-on: windows-latest
env:
CONNECTOR_VERSION: "3.1.11"
CONNECTOR_VERSION: "3.1.9"
steps:

- name: Cache Connector
id: cache-connector
uses: actions/cache@v1
with:
path: c:/mariadb-connector
key: mariadb-connector-${CONNECTOR_VERSION}-win
key: mariadb-connector-c-${{ env.CONNECTOR_VERSION }}-win

- name: Download and Unzip Connector
if: steps.cache-connector.outputs.cache-hit != 'true'
Expand All @@ -41,15 +39,13 @@ jobs:
cmake -DCMAKE_INSTALL_PREFIX=c:/mariadb-connector -DCMAKE_INSTALL_COMPONENT=Development -DCMAKE_BUILD_TYPE=Release -P cmake_install.cmake

- name: Checkout mysqlclient
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
ref: master
fetch-depth: 10
path: mysqlclient

- name: Site Config
shell: bash
working-directory: ../mysqlclient
working-directory: mysqlclient
run: |
pwd
find .
Expand All @@ -62,7 +58,7 @@ jobs:

- name: Build wheels
shell: cmd
working-directory: ../mysqlclient
working-directory: mysqlclient
run: |
py -3.9 -m pip install -U setuptools wheel pip
py -3.9 setup.py bdist_wheel
Expand All @@ -74,14 +70,14 @@ jobs:
py -3.6 setup.py bdist_wheel

- name: Upload Wheel
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v2
with:
name: win-wheels
path: ../mysqlclient/dist
path: mysqlclient/dist/*.whl

- name: Check wheels
shell: bash
working-directory: ../mysqlclient/dist
working-directory: mysqlclient/dist
run: |
ls -la
py -3.9 -m pip install --no-index --find-links . mysqlclient
Expand Down