Skip to content

Commit 9cee9a9

Browse files
committed
Switch to GitHub Actions
1 parent bc8a11e commit 9cee9a9

File tree

5 files changed

+53
-32
lines changed

5 files changed

+53
-32
lines changed

.github/workflows/build.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
check:
18+
runs-on: macos-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
submodule: true
23+
- run: rustup toolchain install stable --profile=minimal --component clippy --component rustfmt
24+
- run: cargo clippy -- -D warnings
25+
- run: cargo fmt --all -- --check
26+
27+
test-macos:
28+
runs-on: macos-latest
29+
steps:
30+
- uses: actions/checkout@v4
31+
with:
32+
submodule: true
33+
- run: |
34+
echo "CC=$(brew --prefix gcc@13)/bin/gcc-13" >> "${GITHUB_ENV}"
35+
echo "FC=$(brew --prefix gcc@13)/bin/gfortran-13" >> "${GITHUB_ENV}"
36+
echo "LIBRARY_PATH=$(brew --prefix gcc@13)/lib/gcc/13" >> "${GITHUB_ENV}"
37+
- run: rustup toolchain install stable --profile=minimal
38+
- run: cargo test
39+
40+
test-ubuntu:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v4
44+
with:
45+
submodule: true
46+
- run: rustup toolchain install stable --profile=minimal
47+
- run: cargo test

.travis.yml

-27
This file was deleted.

Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[package]
22
name = "netlib-src"
33
version = "0.8.0"
4-
license = "Apache-2.0/MIT"
4+
edition = "2021"
5+
license = "Apache-2.0 OR MIT"
56
authors = [
67
"Alexander Bulaev <[email protected]>",
78
"Corey Richardson <[email protected]>",

LICENSE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The following two notices apply to every file of the project.
1111
## The Apache License
1212

1313
```
14-
Copyright 2015–2020 The netlib-src Developers
14+
Copyright 2015–2025 The netlib-src Developers
1515
1616
Licensed under the Apache License, Version 2.0 (the “License”); you may not use
1717
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.
2828
## The MIT License
2929

3030
```
31-
Copyright 2015–2020 The netlib-src Developers
31+
Copyright 2015–2025 The netlib-src Developers
3232
3333
Permission is hereby granted, free of charge, to any person obtaining a copy of
3434
this software and associated documentation files (the “Software”), to deal in

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ will be licensed according to the terms given in [LICENSE.md](LICENSE.md).
2525
[lapack]: https://en.wikipedia.org/wiki/LAPACK
2626
[netlib]: http://www.netlib.org/
2727

28-
[build-img]: https://travis-ci.org/blas-lapack-rs/netlib-src.svg?branch=master
29-
[build-url]: https://travis-ci.org/blas-lapack-rs/netlib-src
28+
[build-img]: https://github.com/blas-lapack-rs/netlib-src/actions/workflows/build.yml/badge.svg
29+
[build-url]: https://github.com/blas-lapack-rs/netlib-src/actions/workflows/build.yml
3030
[documentation-img]: https://docs.rs/netlib-src/badge.svg
3131
[documentation-url]: https://docs.rs/netlib-src
3232
[package-img]: https://img.shields.io/crates/v/netlib-src.svg

0 commit comments

Comments
 (0)