Skip to content

Commit c950f0c

Browse files
committed
Bump to v0.20.1 and update GitHub Actions
1 parent c437770 commit c950f0c

File tree

4 files changed

+37
-33
lines changed

4 files changed

+37
-33
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@ permissions:
66
on:
77
push:
88
tags:
9-
- v[0-9]+.*
9+
- "v[0-9]+.*"
1010

1111
jobs:
1212
release-format-check:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16+
1617
- name: Run format check
1718
run: cargo fmt --check
19+
1820
- name: Run cargo-readme check
1921
run: cargo install cargo-readme && cargo readme > TMP_README.md && diff -b TMP_README.md README.md
2022

@@ -23,25 +25,12 @@ jobs:
2325
runs-on: ubuntu-latest
2426
steps:
2527
- uses: actions/checkout@v4
28+
2629
- uses: taiki-e/create-gh-release-action@v1
2730
with:
28-
# (optional) Path to changelog.
2931
changelog: CHANGELOG.md
30-
# (required) GitHub token for creating GitHub Releases.
3132
token: ${{ secrets.GITHUB_TOKEN }}
3233

33-
cargo-publish:
34-
needs: create-release
35-
runs-on: ubuntu-latest
36-
steps:
37-
- uses: actions/checkout@v4
38-
- name: Publish to crates.io
39-
run: >
40-
cargo publish
41-
--all-features
42-
--verbose
43-
--token ${{ secrets.CARGO_REGISTRY_TOKEN }}
44-
4534
upload-assets:
4635
needs: create-release
4736
strategy:
@@ -56,14 +45,24 @@ jobs:
5645
runs-on: ${{ matrix.os }}
5746
steps:
5847
- uses: actions/checkout@v4
48+
5949
- uses: taiki-e/upload-rust-binary-action@v1
6050
with:
61-
# (required) Comma-separated list of binary names (non-extension portion of filename) to build and upload.
62-
# Note that glob pattern is not supported yet.
6351
bin: oneio
6452
features: cli
6553
checksum: sha256
66-
# (optional) Target triple, default is host triple.
6754
target: ${{ matrix.target }}
68-
# (required) GitHub token for uploading assets to GitHub Releases.
69-
token: ${{ secrets.GITHUB_TOKEN }}
55+
token: ${{ secrets.GITHUB_TOKEN }}
56+
57+
cargo-publish:
58+
needs: [create-release, upload-assets]
59+
runs-on: ubuntu-latest
60+
steps:
61+
- uses: actions/checkout@v4
62+
63+
- name: Publish to crates.io
64+
run: >
65+
cargo publish
66+
--all-features
67+
--verbose
68+
--token ${{ secrets.CARGO_REGISTRY_TOKEN }}

.github/workflows/rust.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,18 @@ name: Rust
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
paths-ignore:
7-
- '**.md'
7+
- "**.md"
88
pull_request:
9-
branches: [ main ]
9+
branches: [main]
1010
paths-ignore:
11-
- '**.md'
11+
- "**.md"
1212

1313
env:
1414
CARGO_TERM_COLOR: always
1515

1616
jobs:
17-
# Check code formatting (fast, separate job)
1817
format:
1918
name: Format
2019
runs-on: ubuntu-latest
@@ -24,7 +23,6 @@ jobs:
2423
- name: Check formatting
2524
run: cargo fmt --check
2625

27-
# Check compilation with different features
2826
check:
2927
name: Check
3028
runs-on: ubuntu-latest
@@ -40,7 +38,6 @@ jobs:
4038
- name: Check with no features
4139
run: cargo check --no-default-features
4240

43-
# Run clippy linting
4441
clippy:
4542
name: Clippy
4643
runs-on: ubuntu-latest
@@ -56,11 +53,10 @@ jobs:
5653
- name: Clippy with default features
5754
run: cargo clippy -- -D warnings
5855

59-
# Build with different feature combinations
6056
build:
6157
name: Build
6258
runs-on: ubuntu-latest
63-
needs: [ check, clippy ]
59+
needs: [check, clippy]
6460
steps:
6561
- uses: actions/checkout@v4
6662

@@ -77,7 +73,11 @@ jobs:
7773
run: |
7874
cargo build --no-default-features --features http,gz,bz,native-tls
7975
# Check if rustls is actually used in the dependency tree
80-
rustls_count=$(cargo tree --no-default-features --features http,gz,bz,native-tls 2>/dev/null | grep -c "rustls v" || echo "0")
76+
rustls_count=$(
77+
cargo tree --no-default-features --features http,gz,bz,native-tls 2>/dev/null \
78+
| grep -c "rustls v" \
79+
|| echo "0"
80+
)
8181
if [ "$rustls_count" -gt 0 ]; then
8282
echo "ERROR: rustls crate found $rustls_count times in dependencies when using native-tls"
8383
cargo tree --no-default-features --features http,gz,bz,native-tls 2>/dev/null | grep "rustls v"
@@ -89,7 +89,11 @@ jobs:
8989
run: |
9090
cargo build --no-default-features --features http,gz,bz,rustls
9191
# Check if native-tls is actually used in the dependency tree
92-
natls_count=$(cargo tree --no-default-features --features http,gz,bz,rustls 2>/dev/null | grep -c "native-tls v" || echo "0")
92+
natls_count=$(
93+
cargo tree --no-default-features --features http,gz,bz,rustls 2>/dev/null \
94+
| grep -c "native-tls v" \
95+
|| echo "0"
96+
)
9397
if [ "$natls_count" -gt 0 ]; then
9498
echo "ERROR: native-tls crate found $natls_count times in dependencies when using rustls"
9599
cargo tree --no-default-features --features http,gz,bz,rustls 2>/dev/null | grep "native-tls v"
@@ -117,7 +121,6 @@ jobs:
117121
- name: Build async feature
118122
run: cargo build --no-default-features --features async,http,gz,rustls
119123

120-
# Run tests
121124
test:
122125
name: Test
123126
runs-on: ubuntu-latest

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
## v0.20.1 -- 2025-12-18
8+
79
### Changed
810
- `rustls` feature now enables both `rustls-tls-native-roots` and `rustls-tls-webpki-roots` for reqwest
911
- Provides support for system certificates (including those installed by Cloudflare WARP or corporate VPNs)

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "oneio"
3-
version = "0.20.0"
3+
version = "0.20.1"
44
authors = ["Mingwei Zhang <mingwei@bgpkit.com>"]
55
edition = "2021"
66
readme = "README.md"

0 commit comments

Comments
 (0)