Skip to content

Commit 50c61f5

Browse files
authored
Merge pull request #31 from drivercraft/dev-fix
Dev fix
2 parents 0b4e744 + 9070d5f commit 50c61f5

File tree

5 files changed

+40
-13
lines changed

5 files changed

+40
-13
lines changed

.github/workflows/release.yml

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,21 @@ jobs:
1616
if: ${{ github.repository_owner == 'drivercraft' && (github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success') }}
1717
runs-on: ubuntu-latest
1818
steps:
19-
- name: Checkout code
20-
uses: actions/checkout@v4
19+
- &checkout
20+
name: Checkout repository
21+
uses: actions/checkout@v6
22+
with:
23+
fetch-depth: 0
24+
persist-credentials: false
25+
- &install-rust
26+
name: Install Rust toolchain
27+
uses: dtolnay/rust-toolchain@stable
28+
29+
- &setup-libudenv:
30+
uses: awalsh128/cache-apt-pkgs-action@latest
31+
with:
32+
packages: libudev-dev
33+
version: 1.0
2134

2235
- name: Release with release-plz
2336
uses: release-plz/action@v0.5
@@ -26,6 +39,27 @@ jobs:
2639
env:
2740
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2841
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
42+
# Create a PR with the new versions and changelog, preparing the next release.
43+
release-plz-pr:
44+
name: Release-plz PR
45+
runs-on: ubuntu-latest
46+
permissions:
47+
contents: write
48+
pull-requests: write
49+
concurrency:
50+
group: release-plz-${{ github.ref }}
51+
cancel-in-progress: false
52+
steps:
53+
- *checkout
54+
- *install-rust
55+
- *setup-libudenv
56+
- name: Run release-plz
57+
uses: release-plz/action@v0.5
58+
with:
59+
command: release-pr
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
2963

3064
build-binaries:
3165
needs: release-plz

fitimage/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ version = "0.1.1"
44
edition = "2021"
55
authors = ["周睿 <zrufo747@outlook.com>"]
66
description = "A Rust library for creating U-Boot compatible FIT images"
7-
documentation = "https://docs.rs/fitimage"
87
license = "MIT OR Apache-2.0"
9-
readme = "README.md"
108
categories = ["embedded", "development-tools", "os"]
119
keywords = ["u-boot", "boot", "fit-image", "embedded"]
12-
repository = "https://github.com/ZR233/ostool"
10+
repository = "https://github.com/drivercraft/ostool"
1311

1412
[dependencies]
1513
# 核心依赖

jkconfig/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
authors = ["周睿 <zrufo747@outlook.com>"]
33
categories = ["command-line-interface", "config"]
44
description = "A Cursive-based TUI component library for JSON Schema configuration"
5-
documentation = "https://docs.rs/jkconfig"
65
edition = "2024"
76
keywords = ["tui", "config", "json-schema", "terminal"]
87
license = "MIT OR Apache-2.0"
98
name = "jkconfig"
10-
readme = "README.md"
11-
repository = "https://github.com/ZR233/ostool"
9+
repository = "https://github.com/drivercraft/ostool"
1210
version = "0.1.5"
1311

1412
[[bin]]

ostool/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
authors = ["周睿 <zrufo747@outlook.com>"]
33
categories = ["command-line-utilities", "embedded", "development-tools"]
44
description = "A tool for operating system development"
5-
documentation = "https://docs.rs/ostool"
65
edition = "2024"
76
keywords = ["os", "embedded", "qemu", "u-boot", "bootloader"]
87
license = "MIT OR Apache-2.0"
98
name = "ostool"
109
readme = "../README.md"
11-
repository = "https://github.com/ZR233/ostool"
10+
repository = "https://github.com/drivercraft/ostool"
1211
version = "0.8.9"
1312

1413
[package.metadata.binstall]

uboot-shell/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
authors = ["周睿 <zrufo747@outlook.com>"]
33
categories = ["os", "embedded", "development-tools"]
44
description = "A crate for communicating with u-boot"
5-
documentation = "https://docs.rs/uboot-shell"
65
edition = "2024"
76
keywords = ["u-boot", "shell", "embedded", "serial", "ymodem"]
87
license = "MIT"
98
name = "uboot-shell"
10-
readme = "README.md"
11-
repository = "https://github.com/ZR233/ostool"
9+
repository = "https://github.com/drivercraft/ostool"
1210
version = "0.2.1"
1311

1412
[dependencies]

0 commit comments

Comments
 (0)