make it possible to change the journal mode #27
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
name: Build Daison | |
on: | |
pull_request: | |
push: | |
branches: [master] | |
jobs: | |
build_wheels: | |
name: Build wheel on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [ubuntu-latest, macos-11, windows-latest] | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-python@v4 | |
name: Install Python | |
with: | |
python-version: '3.8' | |
- name: Install cibuildwheel | |
run: | | |
python3 -m pip install git+https://github.com/joerick/cibuildwheel.git@main | |
- name: Compile the package | |
run: | | |
python3 -m cibuildwheel . --output-dir wheelhouse | |
- name: Upload artifact | |
uses: actions/upload-artifact@master | |
with: | |
name: daison-${{ matrix.os }} | |
path: ./wheelhouse | |
upload_pypi: | |
name: Upload to PyPI | |
needs: [build_wheels] | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/master' && github.event_name == 'push' | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install twine | |
run: pip install twine | |
- uses: actions/download-artifact@master | |
with: | |
name: daison-ubuntu-latest | |
path: ./dist | |
- uses: actions/download-artifact@master | |
with: | |
name: daison-macos-11 | |
path: ./dist | |
- uses: actions/download-artifact@master | |
with: | |
name: daison-windows-latest | |
path: ./dist | |
- name: Publish | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.pypi_password }} | |
run: | | |
(curl -I --fail https://pypi.org/project/$(python setup.py --name)/$(python setup.py --version)/) || twine upload dist/* |