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