Skip to content

build

build #3

Workflow file for this run

name: build
on:
workflow_dispatch:
jobs:
make-wheels:
name: Build wheels ${{ matrix.os }} ${{ matrix.py }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest"]
py: ["cp312"]
# os: ["ubuntu-latest", "macos-14", "windows-latest"]
# py: ["cp39", "cp310", "cp311", "cp312"]
fail-fast: true
steps:
- uses: actions/checkout@v4
- name: prep
run: |
git clone --depth=1 --branch=master https://github.com/rigglemania/pysqlcipher3.git
cd pysqlcipher3
mkdir amalgamation
cp ../sqlcipher/sqlite3.[ch] amalgamation
mkdir src/python3/sqlcipher
cp ../sqlcipher/sqlite3.[ch] src/python3/sqlcipher
python setup.py build_amalgamation
python setup.py build
cd ..
- name: "Build wheels"
uses: pypa/[email protected]
env:
CIBW_ARCHS: "native"
CIBW_BUILD: "${{ matrix.py }}-*"
CIBW_SKIP: "pp*"
CIBW_BUILD_FRONTEND: "build"
- name: "Upload wheel as artifact"
uses: actions/upload-artifact@v4
with:
name: artifact-${{ matrix.os }}-${{ matrix.cibw_arch }}-wheel
path: "wheelhouse/*.whl"