use github action to install cargo tools

pull/745/merge
Yuri Astrakhan 9 months ago committed by Thomas Tanon
parent 089875ad21
commit f5de5d3e98
  1. 3
      .github/workflows/artifacts.yml
  2. 21
      .github/workflows/tests.yml

@ -274,7 +274,8 @@ jobs:
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
- run: cargo install wasm-pack || true - uses: taiki-e/install-action@v2
with: { tool: wasm-pack }
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 16 node-version: 16

@ -125,8 +125,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/setup-rust - uses: taiki-e/install-action@v2
- run: cargo install cargo-deny || true with: { tool: cargo-deny }
- run: cargo deny check - run: cargo deny check
semver_checks: semver_checks:
@ -136,7 +136,8 @@ jobs:
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
- run: cargo install cargo-semver-checks || true - uses: taiki-e/install-action@v2
with: { tool: cargo-semver-checks }
- uses: actions/cache@v3 - uses: actions/cache@v3
with: with:
path: rocksdb path: rocksdb
@ -236,8 +237,8 @@ jobs:
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
with: with:
target: wasm32-wasi target: wasm32-wasi
- uses: taiki-e/install-action@wasmtime - uses: taiki-e/install-action@v2
- run: cargo install cargo-wasi || true with: { tool: "wasmtime,cargo-wasi" }
- run: cargo wasi test --workspace --exclude oxigraph-js --exclude oxigraph-cli --exclude oxigraph-testsuite --exclude oxrocksdb-sys --exclude pyoxigraph - run: cargo wasi test --workspace --exclude oxigraph-js --exclude oxigraph-cli --exclude oxigraph-testsuite --exclude oxrocksdb-sys --exclude pyoxigraph
rustdoc: rustdoc:
@ -258,7 +259,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
- run: cargo install wasm-pack || true - uses: taiki-e/install-action@v2
with: { tool: wasm-pack }
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 16 node-version: 16
@ -397,8 +399,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/setup-rust - uses: taiki-e/install-action@v2
- run: cargo install typos-cli || true with: { tool: typos-cli }
- run: typos - run: typos
clang_fmt: clang_fmt:
@ -499,7 +501,8 @@ jobs:
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
- run: cargo install cargo-codspeed || true - uses: taiki-e/install-action@v2
with: { tool: cargo-codspeed }
- run: cargo codspeed build -p oxigraph --features http-client-native-tls - run: cargo codspeed build -p oxigraph --features http-client-native-tls
- run: cargo codspeed build -p oxigraph-testsuite - run: cargo codspeed build -p oxigraph-testsuite
- uses: CodSpeedHQ/action@v2 - uses: CodSpeedHQ/action@v2

Loading…
Cancel
Save