From df5776e76d11174a06d6a8859ec9be07d78eb09b Mon Sep 17 00:00:00 2001 From: Ian Wijma Date: Tue, 21 Nov 2023 00:31:40 +1100 Subject: [PATCH] Refactor spawn_process fn to handle spawn error This commit modifies the spawn_process function to explicitly return a Result type, handling the error of the spawn() method. This change improves the readability of the error handling and makes it more idiomatic in Rust. As a secondary correction, it fixes a typo in a print statement. --- .github/workflows/release.yaml | 10 ++++++++++ Cargo.toml | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a287140..0e895bf 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -18,9 +18,19 @@ jobs: steps: - uses: actions/checkout@master - name: Compile and release + id: compile uses: rust-build/rust-build.action@v1.4.4 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: RUSTTARGET: ${{ matrix.target }} ARCHIVE_TYPES: ${{ matrix.archive }} + UPLOAD_MODE: 'none' + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: Binary + path: | + ${{ steps.compile.outputs.BUILT_ARCHIVE }} + ${{ steps.compile.outputs.BUILT_CHECKSUM }} + diff --git a/Cargo.toml b/Cargo.toml index 77e7b74..e900da1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kr" -version = "1.0.0" +version = "1.0.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html