|
|
|
@ -72,7 +72,7 @@ jobs: |
|
|
|
|
with: |
|
|
|
|
python-version: "3.10" |
|
|
|
|
- run: python -m venv python/venv |
|
|
|
|
- run: source python/venv/bin/activate && pip install --upgrade 'maturin~=0.12' sphinx |
|
|
|
|
- run: source python/venv/bin/activate && pip install --upgrade maturin sphinx |
|
|
|
|
- run: source venv/bin/activate && maturin develop |
|
|
|
|
working-directory: ./python |
|
|
|
|
- run: source ../venv/bin/activate && python -m unittest |
|
|
|
@ -85,17 +85,25 @@ jobs: |
|
|
|
|
python_wheel_linux: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
needs: python |
|
|
|
|
strategy: |
|
|
|
|
matrix: |
|
|
|
|
architecture: ["x86_64", "aarch64"] |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v2 |
|
|
|
|
with: |
|
|
|
|
submodules: true |
|
|
|
|
- uses: messense/maturin-action@v1 |
|
|
|
|
- uses: docker/setup-qemu-action@v1 |
|
|
|
|
if: matrix.architecture != 'x86_64' |
|
|
|
|
with: |
|
|
|
|
platforms: ${{ matrix.architecture }} |
|
|
|
|
- run: sed 's/%arch%/${{ matrix.architecture }}/g' .github/workflows/manylinux_build.sh > .github/workflows/manylinux_build_script.sh |
|
|
|
|
- run: docker run -v "$(pwd)":/workdir --platform linux/${{ matrix.architecture }} quay.io/pypa/manylinux2014_${{ matrix.architecture }} /bin/bash /workdir/.github/workflows/manylinux_build_script.sh |
|
|
|
|
- uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
manylinux: 2014 |
|
|
|
|
container: messense/manylinux2014-cross:x86_64 |
|
|
|
|
command: build |
|
|
|
|
args: -m python/Cargo.toml |
|
|
|
|
name: wheels |
|
|
|
|
path: target/wheels/*.whl |
|
|
|
|
- run: pip install pyoxigraph --no-index --find-links ../../target/wheels && python -m unittest |
|
|
|
|
if: matrix.architecture == 'x86_64' |
|
|
|
|
working-directory: ./python/tests |
|
|
|
|
|
|
|
|
|
python_wheel_mac: |
|
|
|
@ -105,19 +113,26 @@ jobs: |
|
|
|
|
- uses: actions/checkout@v2 |
|
|
|
|
with: |
|
|
|
|
submodules: true |
|
|
|
|
- uses: messense/maturin-action@v1 |
|
|
|
|
- run: rustup update && rustup target add aarch64-apple-darwin |
|
|
|
|
- uses: actions/setup-python@v2 |
|
|
|
|
with: |
|
|
|
|
command: build |
|
|
|
|
args: -m python/Cargo.toml --universal2 |
|
|
|
|
python-version: 3.7 |
|
|
|
|
- run: pip install maturin |
|
|
|
|
- run: maturin build --release -m python/Cargo.toml --universal2 |
|
|
|
|
env: |
|
|
|
|
DEVELOPER_DIR: '/Applications/Xcode.app/Contents/Developer' |
|
|
|
|
SDKROOT: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk' |
|
|
|
|
MACOSX_DEPLOYMENT_TARGET: '10.9' |
|
|
|
|
- uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
name: wheels |
|
|
|
|
path: target/wheels/*.whl |
|
|
|
|
- run: pip install pyoxigraph --no-index --find-links ../../target/wheels && python -m unittest |
|
|
|
|
working-directory: ./python/tests |
|
|
|
|
|
|
|
|
|
python_wheel_windows: |
|
|
|
|
runs-on: windows-latest |
|
|
|
|
needs: python |
|
|
|
|
strategy: |
|
|
|
|
matrix: |
|
|
|
|
architecture: ["x86", "x64"] |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v2 |
|
|
|
|
with: |
|
|
|
@ -125,12 +140,27 @@ jobs: |
|
|
|
|
- uses: actions/setup-python@v2 |
|
|
|
|
with: |
|
|
|
|
python-version: 3.7 |
|
|
|
|
architecture: ${{ matrix.architecture }} |
|
|
|
|
- run: rustup update |
|
|
|
|
- run: Remove-Item -LiteralPath "C:\msys64\" -Force -Recurse |
|
|
|
|
- uses: messense/maturin-action@v1 |
|
|
|
|
- run: pip install maturin |
|
|
|
|
- run: maturin build --release -m python/Cargo.toml |
|
|
|
|
- uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
command: build |
|
|
|
|
target: ${{ matrix.architecture }} |
|
|
|
|
args: -m python/Cargo.toml |
|
|
|
|
name: wheels |
|
|
|
|
path: target/wheels/*.whl |
|
|
|
|
- run: pip install pyoxigraph --no-index --find-links ../../target/wheels && python -m unittest |
|
|
|
|
working-directory: ./python/tests |
|
|
|
|
|
|
|
|
|
binary_linux: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
needs: test_linux |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v2 |
|
|
|
|
with: |
|
|
|
|
submodules: true |
|
|
|
|
- run: cargo build --release |
|
|
|
|
working-directory: ./server |
|
|
|
|
- uses: actions/upload-artifact@v2 |
|
|
|
|
with: |
|
|
|
|
name: binary |
|
|
|
|
path: target/release/oxigraph_server |
|
|
|
|