Skip to content

Commit

Permalink
upgrade requirement versions and add cargo upgrades workflow (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs authored Apr 16, 2024
1 parent 942851e commit 4f55d58
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,22 @@ jobs:
python3 find_examples.py
chmod +x examples.sh
./examples.sh
check-dependencies:
name: Check dependencies
runs-on: ubuntu-latest
strategy:
matrix:
rust-version: ["stable"]
steps:
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.rust-version }}
components: rustfmt
- name: Install cargo-upgrades
run: cargo install cargo-upgrades
- uses: actions/checkout@v3
- name: Check that dependencies are up to date
run:
cargo upgrades
14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ crate-type = ["lib", "cdylib"]
[dependencies]
approx = "0.5"
cauchy = "0.4.*"
itertools = "0.10"
mpi = { version = "0.6.*", optional = true }
itertools = "0.12.*"
mpi = { version = "0.7.*", optional = true }
num = "0.4"
paste = "1.*"
lazy_static = "1.4"
Expand All @@ -36,7 +36,7 @@ green-kernels = { git = "https://github.com/bempp/green-kernels.git" }
thiserror="1.*"

[dev-dependencies]
criterion = { version = "0.3", features = ["html_reports"]}
criterion = { version = "0.5.*", features = ["html_reports"]}
kifmm = { git = "https://github.com/bempp/kifmm.git" }

[[bench]]
Expand All @@ -50,9 +50,9 @@ cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
wildcard_imports = "forbid"

[target.aarch64-apple-darwin.dev-dependencies]
blas-src = { version = "0.9", features = ["accelerate"]}
lapack-src = { version = "0.9", features = ["accelerate"]}
blas-src = { version = "0.10", features = ["accelerate"]}
lapack-src = { version = "0.10", features = ["accelerate"]}

[target.x86_64-unknown-linux-gnu.dev-dependencies]
blas-src = { version = "0.9", features = ["blis"]}
lapack-src = { version = "0.9", features = ["netlib"]}
blas-src = { version = "0.10", features = ["blis"]}
lapack-src = { version = "0.10", features = ["netlib"]}

0 comments on commit 4f55d58

Please sign in to comment.