Skip to content

Commit ecbb4cc

Browse files
authored
chore(dev): release v3.0.0-rc.1 (#161)
1 parent b5006c4 commit ecbb4cc

File tree

5 files changed

+30
-34
lines changed

5 files changed

+30
-34
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,10 @@ jobs:
1818
uses: actions/checkout@v4
1919

2020
- name: Install stable toolchain
21-
uses: actions-rs/toolchain@v1
22-
with:
23-
profile: minimal
24-
toolchain: stable
25-
override: true
21+
uses: dtolnay/rust-toolchain@stable
2622

2723
- name: Publish on crates.io
28-
run: cargo publish --features full --token ${{ secrets.CRATES_TOKEN }}
24+
run: cargo publish --token ${{ secrets.CRATES_TOKEN }}
2925
check-publish:
3026
name: Check Publish
3127
runs-on: ubuntu-latest
@@ -35,11 +31,7 @@ jobs:
3531
uses: actions/checkout@v4
3632

3733
- name: Install stable toolchain
38-
uses: actions-rs/toolchain@v1
39-
with:
40-
profile: minimal
41-
toolchain: stable
42-
override: true
34+
uses: dtolnay/rust-toolchain@stable
4335

4436
- name: Check if can publish on crates.io
45-
run: cargo publish --features cli --token ${{ secrets.CRATES_TOKEN }} --dry-run -v
37+
run: cargo publish --token ${{ secrets.CRATES_TOKEN }} --dry-run -v

.github/workflows/release.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,17 @@ jobs:
7474
steps:
7575
- name: Checkout repository
7676
uses: actions/checkout@v4
77-
- name: Install Rust
78-
uses: actions-rs/toolchain@v1
77+
78+
- name: Install stable toolchain
79+
uses: dtolnay/rust-toolchain@stable
7980
with:
80-
toolchain: stable
8181
target: ${{ matrix.target }}
82-
override: true
83-
profile: minimal
82+
83+
- name: Install cross
84+
if: matrix.cross == true
85+
uses: taiki-e/install-action@v2
86+
with:
87+
tool: cross
8488

8589
- name: Setup variables
8690
shell: bash
@@ -92,12 +96,14 @@ jobs:
9296
run: |
9397
echo "target flag is: ${{ env.TARGET_FLAGS }}"
9498
echo "target dir is: ${{ env.TARGET_DIR }}"
95-
- name: Build release binary
96-
uses: actions-rs/cargo@v1
97-
with:
98-
use-cross: ${{ matrix.cross }}
99-
command: build
100-
args: --verbose --release --no-default-features --features full,native-tls-vendored ${{ env.TARGET_FLAGS }}
99+
100+
- name: Build release binary (with cross)
101+
if: matrix.cross == true
102+
run: cross build --verbose --release --no-default-features --features full,native-tls-vendored ${{ env.TARGET_FLAGS }}
103+
104+
- name: Build release binary (with cargo)
105+
if: matrix.cross == false
106+
run: cargo build --verbose --release --no-default-features --features full,native-tls-vendored ${{ env.TARGET_FLAGS }}
101107

102108
- name: Strip release binary (linux and macos)
103109
if: matrix.build == 'linux' || matrix.build == 'macos'

.github/workflows/rustmsrv.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ jobs:
1717
uses: dtolnay/rust-toolchain@stable
1818

1919
- name: Install Cargo MSRV
20-
uses: actions-rs/install@v0.1
20+
uses: taiki-e/install-action@v2
2121
with:
22-
crate: cargo-msrv
23-
version: latest
24-
use-tool-cache: true
22+
tool: cargo-msrv
2523

2624
- name: Check MSRV
2725
run: cargo msrv verify -- cargo check --all-features

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ is-terminal = {version = "0.4", optional = true}
2424
lifetime = {version = "0.1", features = ["macros"]}
2525
log = {version = "0.4", optional = true}
2626
pretty_env_logger = {version = "0.5", optional = true}
27-
pulldown-cmark = {version = "0.13", optional = true}
27+
pulldown-cmark = {version = "0.10", optional = true}
2828
reqwest = {version = "0.12", default-features = false, features = ["json"]}
2929
scraper = {version = "0.23", optional = true}
3030
serde = {version = "1.0", features = ["derive"]}
@@ -94,7 +94,7 @@ name = "languagetool-rust"
9494
readme = "README.md"
9595
repository = "https://github.com/jeertmans/languagetool-rust"
9696
rust-version = "1.82.0"
97-
version = "2.1.4"
97+
version = "3.0.0-rc.1"
9898

9999
[package.metadata.docs.rs]
100100
all-features = true

0 commit comments

Comments
 (0)