From 7cb34af495748a1ab88769842b526bd148bc7fcd Mon Sep 17 00:00:00 2001 From: Ivan Ukhov Date: Sat, 8 Feb 2025 10:01:25 +0100 Subject: [PATCH] Switch to GitHub Actions --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ .travis.yml | 13 ------------- Cargo.toml | 7 ++++--- LICENSE.md | 4 ++-- README.md | 4 ++-- src/lib.rs | 7 ++++++- 6 files changed, 44 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..0059e7069 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,30 @@ +name: build + +on: + push: + branches: + - main + pull_request: + branches: + - main + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: rustup toolchain install stable --profile=minimal --component clippy --component rustfmt + - run: cargo clippy -- -D warnings + - run: cargo fmt --all -- --check + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: rustup toolchain install stable --profile=minimal + - run: cargo test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ce2b5e6d9..000000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: rust - -os: - - linux - - osx - -rust: - - stable - - beta - - nightly - -notifications: - email: false diff --git a/Cargo.toml b/Cargo.toml index 60e0ae649..992c1bfb4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,8 @@ [package] name = "lapack" -version = "0.19.0" -license = "Apache-2.0/MIT" +version = "0.20.0" +edition = "2021" +license = "Apache-2.0 OR MIT" authors = [ "Andrew Straw ", "Crozet Sébastien ", @@ -27,5 +28,5 @@ version = "0.4" default-features = false [dependencies.lapack-sys] -version = "0.14" +version = "0.15" default-features = false diff --git a/LICENSE.md b/LICENSE.md index f24b3e53f..c8784ac57 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -11,7 +11,7 @@ The following two notices apply to every file of the project. ## The Apache License ``` -Copyright 2014–2021 The lapack Developers +Copyright 2014–2025 The lapack Developers Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -28,7 +28,7 @@ specific language governing permissions and limitations under the License. ## The MIT License ``` -Copyright 2014–2021 The lapack Developers +Copyright 2014–2025 The lapack Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in diff --git a/README.md b/README.md index 7bd079750..0ccf22e1d 100644 --- a/README.md +++ b/README.md @@ -45,8 +45,8 @@ will be licensed according to the terms given in [LICENSE.md](LICENSE.md). [architecture]: https://blas-lapack-rs.github.io/architecture [lapack]: https://en.wikipedia.org/wiki/LAPACK -[build-img]: https://travis-ci.org/blas-lapack-rs/lapack.svg?branch=master -[build-url]: https://travis-ci.org/blas-lapack-rs/lapack +[build-img]: https://github.com/blas-lapack-rs/lapack/actions/workflows/build.yml/badge.svg +[build-url]: https://github.com/blas-lapack-rs/lapack/actions/workflows/build.yml [documentation-img]: https://docs.rs/lapack/badge.svg [documentation-url]: https://docs.rs/lapack [package-img]: https://img.shields.io/crates/v/lapack.svg diff --git a/src/lib.rs b/src/lib.rs index 417fbdd5e..bfb139c4b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -27,8 +27,13 @@ //! [architecture]: https://blas-lapack-rs.github.io/architecture //! [lapack]: https://en.wikipedia.org/wiki/LAPACK +#![allow( + clippy::missing_safety_doc, + clippy::missing_transmute_annotations, + clippy::too_many_arguments +)] + extern crate lapack_sys as ffi; -extern crate libc; extern crate num_complex as num; use std::mem::transmute;