|
|
@ -17,7 +17,7 @@ jobs: |
|
|
|
binary_linux: |
|
|
|
binary_linux: |
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
submodules: true |
|
|
|
submodules: true |
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
@ -33,11 +33,11 @@ jobs: |
|
|
|
working-directory: ./cli |
|
|
|
working-directory: ./cli |
|
|
|
env: |
|
|
|
env: |
|
|
|
BINDGEN_EXTRA_CLANG_ARGS: --sysroot /usr/aarch64-linux-gnu |
|
|
|
BINDGEN_EXTRA_CLANG_ARGS: --sysroot /usr/aarch64-linux-gnu |
|
|
|
- uses: actions/upload-artifact@v3 |
|
|
|
- uses: actions/upload-artifact@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: oxigraph_x86_64_linux_gnu |
|
|
|
name: oxigraph_x86_64_linux_gnu |
|
|
|
path: target/release/oxigraph |
|
|
|
path: target/release/oxigraph |
|
|
|
- uses: actions/upload-artifact@v3 |
|
|
|
- uses: actions/upload-artifact@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: oxigraph_aarch64_linux_gnu |
|
|
|
name: oxigraph_aarch64_linux_gnu |
|
|
|
path: target/aarch64-unknown-linux-gnu/release/oxigraph |
|
|
|
path: target/aarch64-unknown-linux-gnu/release/oxigraph |
|
|
@ -59,7 +59,7 @@ jobs: |
|
|
|
SDKROOT: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk' |
|
|
|
SDKROOT: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk' |
|
|
|
MACOSX_DEPLOYMENT_TARGET: '10.14' |
|
|
|
MACOSX_DEPLOYMENT_TARGET: '10.14' |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
submodules: true |
|
|
|
submodules: true |
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
@ -69,11 +69,11 @@ jobs: |
|
|
|
working-directory: ./cli |
|
|
|
working-directory: ./cli |
|
|
|
- run: cargo build --release --target aarch64-apple-darwin |
|
|
|
- run: cargo build --release --target aarch64-apple-darwin |
|
|
|
working-directory: ./cli |
|
|
|
working-directory: ./cli |
|
|
|
- uses: actions/upload-artifact@v3 |
|
|
|
- uses: actions/upload-artifact@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: oxigraph_x86_64_apple |
|
|
|
name: oxigraph_x86_64_apple |
|
|
|
path: target/release/oxigraph |
|
|
|
path: target/release/oxigraph |
|
|
|
- uses: actions/upload-artifact@v3 |
|
|
|
- uses: actions/upload-artifact@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: oxigraph_aarch64_apple |
|
|
|
name: oxigraph_aarch64_apple |
|
|
|
path: target/aarch64-apple-darwin/release/oxigraph |
|
|
|
path: target/aarch64-apple-darwin/release/oxigraph |
|
|
@ -91,14 +91,14 @@ jobs: |
|
|
|
binary_windows: |
|
|
|
binary_windows: |
|
|
|
runs-on: windows-latest |
|
|
|
runs-on: windows-latest |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
submodules: true |
|
|
|
submodules: true |
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
- run: Remove-Item -LiteralPath "C:\msys64\" -Force -Recurse |
|
|
|
- run: Remove-Item -LiteralPath "C:\msys64\" -Force -Recurse |
|
|
|
- run: cargo build --release |
|
|
|
- run: cargo build --release |
|
|
|
working-directory: ./cli |
|
|
|
working-directory: ./cli |
|
|
|
- uses: actions/upload-artifact@v3 |
|
|
|
- uses: actions/upload-artifact@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: oxigraph_x86_64_windows_msvc |
|
|
|
name: oxigraph_x86_64_windows_msvc |
|
|
|
path: target/release/oxigraph.exe |
|
|
|
path: target/release/oxigraph.exe |
|
|
@ -112,11 +112,11 @@ jobs: |
|
|
|
python_sdist: |
|
|
|
python_sdist: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
submodules: true |
|
|
|
submodules: true |
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
- uses: actions/setup-python@v4 |
|
|
|
- uses: actions/setup-python@v5 |
|
|
|
with: |
|
|
|
with: |
|
|
|
python-version: "3.12" |
|
|
|
python-version: "3.12" |
|
|
|
cache: pip |
|
|
|
cache: pip |
|
|
@ -128,9 +128,9 @@ jobs: |
|
|
|
- run: python generate_stubs.py pyoxigraph pyoxigraph.pyi --ruff |
|
|
|
- run: python generate_stubs.py pyoxigraph pyoxigraph.pyi --ruff |
|
|
|
working-directory: ./python |
|
|
|
working-directory: ./python |
|
|
|
- run: maturin sdist -m python/Cargo.toml |
|
|
|
- run: maturin sdist -m python/Cargo.toml |
|
|
|
- uses: actions/upload-artifact@v3 |
|
|
|
- uses: actions/upload-artifact@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: pyoxigraph_dist |
|
|
|
name: pyoxigraph_sdist |
|
|
|
path: target/wheels/*.tar.gz |
|
|
|
path: target/wheels/*.tar.gz |
|
|
|
|
|
|
|
|
|
|
|
wheel_linux: |
|
|
|
wheel_linux: |
|
|
@ -140,7 +140,7 @@ jobs: |
|
|
|
architecture: [ "x86_64", "aarch64" ] |
|
|
|
architecture: [ "x86_64", "aarch64" ] |
|
|
|
continue-on-error: true |
|
|
|
continue-on-error: true |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
submodules: true |
|
|
|
submodules: true |
|
|
|
- uses: docker/setup-qemu-action@v2 |
|
|
|
- uses: docker/setup-qemu-action@v2 |
|
|
@ -151,9 +151,9 @@ jobs: |
|
|
|
- run: sed 's/%arch%/${{ matrix.architecture }}/g' .github/workflows/manylinux_build.sh | sed 's/%for_each_version%/${{ github.event_name == 'release' || '' }}/g' > .github/workflows/manylinux_build_script.sh |
|
|
|
- run: sed 's/%arch%/${{ matrix.architecture }}/g' .github/workflows/manylinux_build.sh | sed 's/%for_each_version%/${{ github.event_name == 'release' || '' }}/g' > .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 |
|
|
|
- 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 |
|
|
|
if: github.event_name == 'release' || matrix.architecture == 'x86_64' |
|
|
|
if: github.event_name == 'release' || matrix.architecture == 'x86_64' |
|
|
|
- uses: actions/upload-artifact@v3 |
|
|
|
- uses: actions/upload-artifact@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: pyoxigraph_dist |
|
|
|
name: pyoxigraph_${{ matrix.architecture }}_linux_gnu |
|
|
|
path: target/wheels/*.whl |
|
|
|
path: target/wheels/*.whl |
|
|
|
|
|
|
|
|
|
|
|
wheel_linux_musl: |
|
|
|
wheel_linux_musl: |
|
|
@ -163,7 +163,7 @@ jobs: |
|
|
|
architecture: [ "x86_64", "aarch64" ] |
|
|
|
architecture: [ "x86_64", "aarch64" ] |
|
|
|
continue-on-error: true |
|
|
|
continue-on-error: true |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
submodules: true |
|
|
|
submodules: true |
|
|
|
- uses: docker/setup-qemu-action@v2 |
|
|
|
- uses: docker/setup-qemu-action@v2 |
|
|
@ -174,9 +174,9 @@ jobs: |
|
|
|
- run: sed 's/%arch%/${{ matrix.architecture }}/g' .github/workflows/musllinux_build.sh | sed 's/%for_each_version%/${{ github.event_name == 'release' || '' }}/g' > .github/workflows/musllinux_build_script.sh |
|
|
|
- run: sed 's/%arch%/${{ matrix.architecture }}/g' .github/workflows/musllinux_build.sh | sed 's/%for_each_version%/${{ github.event_name == 'release' || '' }}/g' > .github/workflows/musllinux_build_script.sh |
|
|
|
- run: docker run -v "$(pwd)":/workdir --platform linux/${{ matrix.architecture }} quay.io/pypa/musllinux_1_2_${{ matrix.architecture }} /bin/bash /workdir/.github/workflows/musllinux_build_script.sh |
|
|
|
- run: docker run -v "$(pwd)":/workdir --platform linux/${{ matrix.architecture }} quay.io/pypa/musllinux_1_2_${{ matrix.architecture }} /bin/bash /workdir/.github/workflows/musllinux_build_script.sh |
|
|
|
if: github.event_name == 'release' || matrix.architecture == 'x86_64' |
|
|
|
if: github.event_name == 'release' || matrix.architecture == 'x86_64' |
|
|
|
- uses: actions/upload-artifact@v3 |
|
|
|
- uses: actions/upload-artifact@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: pyoxigraph_dist |
|
|
|
name: pyoxigraph_${{ matrix.architecture }}_linux_musl |
|
|
|
path: target/wheels/*.whl |
|
|
|
path: target/wheels/*.whl |
|
|
|
|
|
|
|
|
|
|
|
wheel_mac: |
|
|
|
wheel_mac: |
|
|
@ -186,13 +186,13 @@ jobs: |
|
|
|
SDKROOT: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk' |
|
|
|
SDKROOT: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk' |
|
|
|
MACOSX_DEPLOYMENT_TARGET: '10.14' |
|
|
|
MACOSX_DEPLOYMENT_TARGET: '10.14' |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
submodules: true |
|
|
|
submodules: true |
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
with: |
|
|
|
with: |
|
|
|
target: aarch64-apple-darwin |
|
|
|
target: aarch64-apple-darwin |
|
|
|
- uses: actions/setup-python@v4 |
|
|
|
- uses: actions/setup-python@v5 |
|
|
|
with: |
|
|
|
with: |
|
|
|
python-version: "3.12" |
|
|
|
python-version: "3.12" |
|
|
|
cache: pip |
|
|
|
cache: pip |
|
|
@ -212,19 +212,19 @@ jobs: |
|
|
|
- run: maturin build --release --target aarch64-apple-darwin --features abi3 |
|
|
|
- run: maturin build --release --target aarch64-apple-darwin --features abi3 |
|
|
|
working-directory: ./python |
|
|
|
working-directory: ./python |
|
|
|
if: github.event_name == 'release' |
|
|
|
if: github.event_name == 'release' |
|
|
|
- uses: actions/upload-artifact@v3 |
|
|
|
- uses: actions/upload-artifact@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: pyoxigraph_dist |
|
|
|
name: pyoxigraph_macos |
|
|
|
path: target/wheels/*.whl |
|
|
|
path: target/wheels/*.whl |
|
|
|
|
|
|
|
|
|
|
|
wheel_windows: |
|
|
|
wheel_windows: |
|
|
|
runs-on: windows-latest |
|
|
|
runs-on: windows-latest |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
submodules: true |
|
|
|
submodules: true |
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
- uses: actions/setup-python@v4 |
|
|
|
- uses: actions/setup-python@v5 |
|
|
|
with: |
|
|
|
with: |
|
|
|
python-version: "3.12" |
|
|
|
python-version: "3.12" |
|
|
|
cache: pip |
|
|
|
cache: pip |
|
|
@ -238,9 +238,9 @@ jobs: |
|
|
|
- run: python generate_stubs.py pyoxigraph pyoxigraph.pyi --ruff |
|
|
|
- run: python generate_stubs.py pyoxigraph pyoxigraph.pyi --ruff |
|
|
|
working-directory: ./python |
|
|
|
working-directory: ./python |
|
|
|
- run: maturin build --release -m python/Cargo.toml --features abi3 |
|
|
|
- run: maturin build --release -m python/Cargo.toml --features abi3 |
|
|
|
- uses: actions/upload-artifact@v3 |
|
|
|
- uses: actions/upload-artifact@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: pyoxigraph_dist |
|
|
|
name: pyoxigraph_windows |
|
|
|
path: target/wheels/*.whl |
|
|
|
path: target/wheels/*.whl |
|
|
|
|
|
|
|
|
|
|
|
publish_pypi: |
|
|
|
publish_pypi: |
|
|
@ -258,10 +258,11 @@ jobs: |
|
|
|
- wheel_linux |
|
|
|
- wheel_linux |
|
|
|
- wheel_linux_musl |
|
|
|
- wheel_linux_musl |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/download-artifact@v3 |
|
|
|
- uses: actions/download-artifact@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: pyoxigraph_dist |
|
|
|
pattern: pyoxigraph_* |
|
|
|
path: dist |
|
|
|
path: dist |
|
|
|
|
|
|
|
merge-multiple: true |
|
|
|
- uses: pypa/gh-action-pypi-publish@release/v1 |
|
|
|
- uses: pypa/gh-action-pypi-publish@release/v1 |
|
|
|
with: |
|
|
|
with: |
|
|
|
packages-dir: dist |
|
|
|
packages-dir: dist |
|
|
@ -270,13 +271,13 @@ jobs: |
|
|
|
npm_tarball: |
|
|
|
npm_tarball: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
submodules: true |
|
|
|
submodules: true |
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
- uses: taiki-e/install-action@v2 |
|
|
|
- uses: taiki-e/install-action@v2 |
|
|
|
with: { tool: wasm-pack } |
|
|
|
with: { tool: wasm-pack } |
|
|
|
- uses: actions/setup-node@v3 |
|
|
|
- uses: actions/setup-node@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
node-version: 16 |
|
|
|
node-version: 16 |
|
|
|
cache: npm |
|
|
|
cache: npm |
|
|
@ -284,7 +285,7 @@ jobs: |
|
|
|
registry-url: https://registry.npmjs.org |
|
|
|
registry-url: https://registry.npmjs.org |
|
|
|
- run: npm run pack |
|
|
|
- run: npm run pack |
|
|
|
working-directory: ./js |
|
|
|
working-directory: ./js |
|
|
|
- uses: actions/upload-artifact@v3 |
|
|
|
- uses: actions/upload-artifact@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: oxigraph_wasm_npm |
|
|
|
name: oxigraph_wasm_npm |
|
|
|
path: js/*.tgz |
|
|
|
path: js/*.tgz |
|
|
@ -297,21 +298,21 @@ jobs: |
|
|
|
docker: |
|
|
|
docker: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
submodules: true |
|
|
|
submodules: true |
|
|
|
- uses: docker/setup-buildx-action@v2 |
|
|
|
- uses: docker/setup-buildx-action@v3 |
|
|
|
- uses: docker/login-action@v2 |
|
|
|
- uses: docker/login-action@v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
registry: ghcr.io |
|
|
|
registry: ghcr.io |
|
|
|
username: ${{github.actor}} |
|
|
|
username: ${{github.actor}} |
|
|
|
password: ${{secrets.GITHUB_TOKEN}} |
|
|
|
password: ${{secrets.GITHUB_TOKEN}} |
|
|
|
- uses: docker/login-action@v2 |
|
|
|
- uses: docker/login-action@v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
username: ${{ secrets.DOCKER_USERNAME }} |
|
|
|
username: ${{ secrets.DOCKER_USERNAME }} |
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }} |
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }} |
|
|
|
if: github.event_name == 'release' |
|
|
|
if: github.event_name == 'release' |
|
|
|
- uses: docker/metadata-action@v4 |
|
|
|
- uses: docker/metadata-action@v5 |
|
|
|
id: docker_meta |
|
|
|
id: docker_meta |
|
|
|
with: |
|
|
|
with: |
|
|
|
images: | |
|
|
|
images: | |
|
|
@ -322,7 +323,7 @@ jobs: |
|
|
|
type=ref,event=pr |
|
|
|
type=ref,event=pr |
|
|
|
type=semver,pattern={{version}} |
|
|
|
type=semver,pattern={{version}} |
|
|
|
type=semver,pattern={{major}}.{{minor}} |
|
|
|
type=semver,pattern={{major}}.{{minor}} |
|
|
|
- uses: docker/build-push-action@v4 |
|
|
|
- uses: docker/build-push-action@v5 |
|
|
|
with: |
|
|
|
with: |
|
|
|
context: . |
|
|
|
context: . |
|
|
|
file: server/Dockerfile |
|
|
|
file: server/Dockerfile |
|
|
@ -338,7 +339,7 @@ jobs: |
|
|
|
if: github.event_name == 'release' |
|
|
|
if: github.event_name == 'release' |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
submodules: true |
|
|
|
submodules: true |
|
|
|
- run: rustup update |
|
|
|
- run: rustup update |
|
|
@ -386,7 +387,7 @@ jobs: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
needs: full_archive |
|
|
|
needs: full_archive |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
repository: oxigraph/homebrew-oxigraph |
|
|
|
repository: oxigraph/homebrew-oxigraph |
|
|
|
token: ${{ secrets.FULL_ACCESS_TOKEN }} |
|
|
|
token: ${{ secrets.FULL_ACCESS_TOKEN }} |
|
|
@ -406,7 +407,7 @@ jobs: |
|
|
|
if: github.event_name == 'release' |
|
|
|
if: github.event_name == 'release' |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
submodules: true |
|
|
|
submodules: true |
|
|
|
- run: | |
|
|
|
- run: | |
|
|
|