diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c3bb778..2856406 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,5 +20,19 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Build run: cargo build --verbose + + - name: 获取版本号 + id: get_version + uses: sravinet/toml-select@v1.0.1 + with: + file: ./Cargo.toml + field: "package.version" + + - name: 上传 + uses: actions/upload-artifact@v2 + with: + name: wrapper-rs-b${{ github.run_number }}-${{ steps.get_version.outputs.value }} + path: ./target/release/call* diff --git a/Cargo.toml b/Cargo.toml index 1d38d0e..f06e0eb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "call" -version = "1.3.0" +version = "1.4.0" description = "一个简单的用于不带控制台/带控制台调用其他程序的包装器" edition = "2021" build = "build.rs" diff --git a/src/main.rs b/src/main.rs index 0c43101..11858d6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,6 +7,7 @@ mod other; #[cfg(windows)] mod win; +mod reader; mod config; pub const VERSION: &'static str = env!("CARGO_PKG_VERSION"); diff --git a/src/reader.rs b/src/reader.rs new file mode 100644 index 0000000..37ad769 --- /dev/null +++ b/src/reader.rs @@ -0,0 +1,8 @@ +//! 用于读取自身, 获取信息的部分 +//! 1. 读取自身的信息 +//! 2. 读取自身的配置文件 +//! 3. 读取自身的命令行参数 +//! +//! 大概就这样 +//! +