|
|
|
@ -17,7 +17,9 @@ jobs: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
- run: rustup update && rustup component add rustfmt |
|
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
|
with: |
|
|
|
|
component: rustfmt |
|
|
|
|
- run: cargo fmt -- --check |
|
|
|
|
|
|
|
|
|
clippy: |
|
|
|
@ -26,8 +28,10 @@ jobs: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
with: |
|
|
|
|
submodules: true |
|
|
|
|
- run: rustup update && rustup default 1.74.1 && rustup component add clippy |
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
|
with: |
|
|
|
|
version: 1.74.1 |
|
|
|
|
component: clippy |
|
|
|
|
- run: cargo clippy --all-targets -- -D warnings -D clippy::all |
|
|
|
|
working-directory: ./lib/oxsdatatypes |
|
|
|
|
- run: cargo clippy --all-targets -- -D warnings -D clippy::all |
|
|
|
@ -59,8 +63,11 @@ jobs: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
with: |
|
|
|
|
submodules: true |
|
|
|
|
- run: rustup update && rustup default 1.74.1 && rustup target add wasm32-unknown-unknown && rustup component add clippy |
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
|
with: |
|
|
|
|
version: 1.74.1 |
|
|
|
|
target: wasm32-unknown-unknown |
|
|
|
|
component: clippy |
|
|
|
|
- run: cargo clippy --lib --tests --target wasm32-unknown-unknown -- -D warnings -D clippy::all |
|
|
|
|
working-directory: ./js |
|
|
|
|
|
|
|
|
@ -70,8 +77,11 @@ jobs: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
with: |
|
|
|
|
submodules: true |
|
|
|
|
- run: rustup update && rustup default 1.74.1 && rustup target add wasm32-wasi && rustup component add clippy |
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
|
with: |
|
|
|
|
version: 1.74.1 |
|
|
|
|
target: wasm32-wasi |
|
|
|
|
component: clippy |
|
|
|
|
- run: cargo clippy --lib --tests --target wasm32-wasi -- -D warnings -D clippy::all |
|
|
|
|
working-directory: ./lib |
|
|
|
|
|
|
|
|
@ -81,8 +91,11 @@ jobs: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
with: |
|
|
|
|
submodules: true |
|
|
|
|
- run: rustup update && rustup default 1.74.1 && rustup target add wasm32-unknown-unknown && rustup component add clippy |
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
|
with: |
|
|
|
|
version: 1.74.1 |
|
|
|
|
target: wasm32-unknown-unknown |
|
|
|
|
component: clippy |
|
|
|
|
- run: cargo clippy --lib --tests --target wasm32-unknown-unknown --features getrandom/custom --features oxsdatatypes/custom-now -- -D warnings -D clippy::all |
|
|
|
|
working-directory: ./lib |
|
|
|
|
|
|
|
|
@ -90,8 +103,7 @@ jobs: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
- run: rustup update |
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
|
- run: cargo install cargo-deny || true |
|
|
|
|
- run: cargo deny check |
|
|
|
|
|
|
|
|
@ -102,8 +114,7 @@ jobs: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
with: |
|
|
|
|
submodules: true |
|
|
|
|
- run: rustup update |
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
|
- run: cargo install cargo-semver-checks || true |
|
|
|
|
- run: cargo semver-checks check-release --exclude oxrocksdb-sys --exclude oxigraph-js --exclude pyoxigraph --exclude oxigraph-testsuite --exclude oxigraph-cli |
|
|
|
|
|
|
|
|
@ -113,8 +124,7 @@ jobs: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
with: |
|
|
|
|
submodules: true |
|
|
|
|
- run: rustup update |
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
|
- run: cargo test |
|
|
|
|
|
|
|
|
|
test_linux_msv: |
|
|
|
@ -123,8 +133,10 @@ jobs: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
with: |
|
|
|
|
submodules: true |
|
|
|
|
- run: rustup update && rustup toolchain install nightly && rustup default 1.70.0 |
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
|
with: |
|
|
|
|
version: 1.70.0 |
|
|
|
|
- run: rustup toolchain install nightly |
|
|
|
|
- run: rm Cargo.lock && cargo +nightly update -Z direct-minimal-versions |
|
|
|
|
- run: cargo test |
|
|
|
|
|
|
|
|
@ -134,8 +146,7 @@ jobs: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
with: |
|
|
|
|
submodules: true |
|
|
|
|
- run: rustup update |
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
|
- run: rm Cargo.lock && cargo update |
|
|
|
|
- run: cargo test |
|
|
|
|
|
|
|
|
@ -145,9 +156,10 @@ jobs: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
with: |
|
|
|
|
submodules: true |
|
|
|
|
- run: rustup update && rustup default nightly |
|
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
|
with: |
|
|
|
|
version: nightly |
|
|
|
|
- run: sudo apt-get install -y llvm |
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
|
- run: cargo test --tests --target x86_64-unknown-linux-gnu --workspace --exclude pyoxigraph --exclude oxigraph-testsuite --exclude oxigraph-cli |
|
|
|
|
env: |
|
|
|
|
RUSTFLAGS: -Z sanitizer=address |
|
|
|
@ -158,8 +170,7 @@ jobs: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
with: |
|
|
|
|
submodules: true |
|
|
|
|
- run: rustup update |
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
|
- uses: actions/cache@v3 |
|
|
|
|
with: |
|
|
|
|
path: rocksdb |
|
|
|
@ -173,12 +184,9 @@ jobs: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
with: |
|
|
|
|
submodules: true |
|
|
|
|
- run: rustup update |
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
|
- run: Remove-Item -LiteralPath "C:\msys64\" -Force -Recurse |
|
|
|
|
- run: cargo test |
|
|
|
|
env: |
|
|
|
|
RUST_BACKTRACE: 1 |
|
|
|
|
|
|
|
|
|
test_wasi: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
@ -186,13 +194,12 @@ jobs: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
with: |
|
|
|
|
submodules: true |
|
|
|
|
- run: rustup update && rustup target add wasm32-wasi |
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
|
with: |
|
|
|
|
target: wasm32-wasi |
|
|
|
|
- uses: taiki-e/install-action@wasmtime |
|
|
|
|
- run: cargo install cargo-wasi || true |
|
|
|
|
- run: cargo wasi test --workspace --exclude oxigraph-js --exclude oxigraph-cli --exclude oxigraph-testsuite --exclude oxrocksdb-sys --exclude pyoxigraph |
|
|
|
|
env: |
|
|
|
|
RUST_BACKTRACE: 1 |
|
|
|
|
|
|
|
|
|
rustdoc: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
@ -200,8 +207,9 @@ jobs: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
with: |
|
|
|
|
submodules: true |
|
|
|
|
- run: rustup update && rustup default 1.74.1 |
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
|
with: |
|
|
|
|
version: 1.74.1 |
|
|
|
|
- run: cargo doc |
|
|
|
|
working-directory: ./lib |
|
|
|
|
env: |
|
|
|
@ -211,8 +219,7 @@ jobs: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
- run: rustup update |
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
|
- run: cargo install wasm-pack || true |
|
|
|
|
- uses: actions/setup-node@v3 |
|
|
|
|
with: |
|
|
|
@ -230,8 +237,7 @@ jobs: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
with: |
|
|
|
|
submodules: true |
|
|
|
|
- run: rustup update |
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
|
- uses: actions/setup-python@v4 |
|
|
|
|
with: |
|
|
|
|
python-version: "3.12" |
|
|
|
@ -264,8 +270,10 @@ jobs: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
with: |
|
|
|
|
submodules: true |
|
|
|
|
- run: rustup update && rustup toolchain install nightly && rustup default 1.70.0 |
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
|
with: |
|
|
|
|
version: 1.70.0 |
|
|
|
|
- run: rustup toolchain install nightly |
|
|
|
|
- uses: actions/setup-python@v4 |
|
|
|
|
with: |
|
|
|
|
python-version: "3.8" |
|
|
|
@ -285,8 +293,7 @@ jobs: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
with: |
|
|
|
|
submodules: true |
|
|
|
|
- run: rustup update |
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
|
- uses: actions/setup-python@v4 |
|
|
|
|
with: |
|
|
|
|
python-version: "pypy3.10" |
|
|
|
@ -305,8 +312,7 @@ jobs: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
with: |
|
|
|
|
submodules: true |
|
|
|
|
- run: rustup update |
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
|
- uses: actions/setup-python@v4 |
|
|
|
|
with: |
|
|
|
|
python-version: "3.12" |
|
|
|
@ -323,7 +329,7 @@ jobs: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
|
- run: cargo install typos-cli || true |
|
|
|
|
- run: typos |
|
|
|
|
|
|
|
|
@ -421,6 +427,5 @@ jobs: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
- run: rustup update |
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
|
- uses: ./.github/actions/setup-rust |
|
|
|
|
- run: python lints/test_debian_compatibility.py |
|
|
|
|