Skip to content

Commit f6c00a5

Browse files
authored
Merge pull request mitchmindtree#40 from azriel91/maintenance/update-petgraph
2 parents 60614a4 + 0b4512f commit f6c00a5

File tree

4 files changed

+41
-56
lines changed

4 files changed

+41
-56
lines changed

.github/workflows/daggy.yml

Lines changed: 18 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
name: daggy
22
on: [push, pull_request]
33
jobs:
4+
audit:
5+
name: Audit
6+
runs-on: ubuntu-latest
7+
timeout-minutes: 10
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions-rust-lang/audit@v1
11+
412
rustfmt-check:
513
runs-on: ubuntu-latest
614
steps:
7-
- uses: actions/checkout@v2
8-
- name: Install stable
9-
uses: actions-rs/toolchain@v1
15+
- uses: actions/checkout@v4
16+
- uses: dtolnay/rust-toolchain@master
1017
with:
11-
profile: minimal
1218
toolchain: stable
13-
override: true
1419
components: rustfmt
1520
- name: Run rustfmt
1621
uses: actions-rs/cargo@v1
@@ -21,13 +26,8 @@ jobs:
2126
cargo-test:
2227
runs-on: ubuntu-latest
2328
steps:
24-
- uses: actions/checkout@v2
25-
- name: Install stable
26-
uses: actions-rs/toolchain@v1
27-
with:
28-
profile: minimal
29-
toolchain: stable
30-
override: true
29+
- uses: actions/checkout@v4
30+
- uses: dtolnay/rust-toolchain@stable
3131
- name: cargo test
3232
uses: actions-rs/cargo@v1
3333
with:
@@ -37,48 +37,14 @@ jobs:
3737
cargo-test-all-features:
3838
runs-on: ubuntu-latest
3939
steps:
40-
- uses: actions/checkout@v2
41-
- name: Install stable
42-
uses: actions-rs/toolchain@v1
43-
with:
44-
profile: minimal
45-
toolchain: stable
46-
override: true
40+
- uses: actions/checkout@v4
41+
- uses: dtolnay/rust-toolchain@stable
4742
- name: cargo test all features
48-
uses: actions-rs/cargo@v1
49-
with:
50-
command: test
51-
args: --all-features --verbose
43+
run: cargo test --all-features
5244

5345
cargo-doc-all-features:
5446
runs-on: ubuntu-latest
5547
steps:
56-
- uses: actions/checkout@v2
57-
- name: Install stable
58-
uses: actions-rs/toolchain@v1
59-
with:
60-
profile: minimal
61-
toolchain: stable
62-
override: true
63-
- name: cargo doc
64-
uses: actions-rs/cargo@v1
65-
with:
66-
command: doc
67-
args: --all-features --verbose
68-
69-
cargo-publish:
70-
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
71-
env:
72-
CRATESIO_TOKEN: ${{ secrets.CRATESIO_TOKEN }}
73-
runs-on: ubuntu-latest
74-
steps:
75-
- uses: actions/checkout@v2
76-
- name: Install stable
77-
uses: actions-rs/toolchain@v1
78-
with:
79-
profile: minimal
80-
toolchain: stable
81-
override: true
82-
- name: cargo publish daggy
83-
continue-on-error: true
84-
run: cargo publish --token $CRATESIO_TOKEN
48+
- uses: actions/checkout@v4
49+
- uses: dtolnay/rust-toolchain@stable
50+
- run: cargo doc --no-deps

.github/workflows/publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: publish
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
7+
jobs:
8+
cargo-publish:
9+
env:
10+
CRATESIO_TOKEN: ${{ secrets.CRATESIO_TOKEN }}
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: dtolnay/rust-toolchain@master
15+
with:
16+
toolchain: stable
17+
- name: cargo publish daggy
18+
continue-on-error: true
19+
run: cargo publish --token $CRATESIO_TOKEN

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ homepage = "https://github.com/mitchmindtree/daggy"
1111
edition = "2018"
1212

1313
[dependencies]
14-
petgraph = { version = "0.6", default-features = false }
14+
petgraph = { version = "0.7", default-features = false }
1515
serde = { version = "1.0", optional = true }
1616

1717
[features]

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
//! graph whilst we traverse it.
1111
//!
1212
//!
13-
//! [1]: ./struct.Dag.html
14-
//! [2]: https://docs.rs/petgraph/0.4/petgraph/
15-
//! [3]: https://docs.rs/petgraph/0.4/petgraph/graph/struct.Graph.html
13+
//! [1]: https://docs.rs/daggy/latest/daggy/struct.Dag.html
14+
//! [2]: https://docs.rs/petgraph/0.7.1/petgraph/
15+
//! [3]: https://docs.rs/petgraph/0.7.1/petgraph/graph/struct.Graph.html
1616
1717
#![forbid(unsafe_code)]
1818
#![warn(missing_docs)]

0 commit comments

Comments
 (0)