From 82d38b0610aedc94d8a68b1d1c24809ac482c298 Mon Sep 17 00:00:00 2001 From: Vignesh Rao Date: Fri, 27 Sep 2024 06:25:20 -0500 Subject: [PATCH] Release `v0.1.0-rc` Minor workflow changes --- .github/workflows/rust.yml | 19 +++++++++++++------ Cargo.toml | 2 +- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c1bf407..47638d5 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -17,6 +17,7 @@ concurrency: jobs: release: + name: Create release and tag runs-on: thevickypedia-lite permissions: contents: write @@ -103,9 +104,11 @@ jobs: shell: bash build-and-test: + name: Build and test (no release) needs: release if: needs.release.outputs.release-flag == 'false' - # Unix like systems don't require additional OpenSSL configuration like Windows, so build + # Unix like systems don't require additional OpenSSL configuration like Windows + # Making them much more suitable for non-release build and tests runs-on: - thevickypedia-lite - posix @@ -119,6 +122,8 @@ jobs: build-and-upload-artifact: needs: release + outputs: + release-flag: ${{ steps.release-id-check.outputs.release_flag }} strategy: matrix: platform: @@ -142,7 +147,7 @@ jobs: bin: ${{ needs.release.outputs.bin-name }} name: ${{ needs.release.outputs.pkg-name }}-Darwin-arm64.tar.gz - name: Build and upload artifact for ${{ matrix.platform.release_for }} + name: Build, test and upload artifact for ${{ matrix.platform.release_for }} if: needs.release.outputs.release-flag == 'true' runs-on: ${{ matrix.platform.os }} permissions: @@ -150,6 +155,7 @@ jobs: steps: - name: Release ID Propagation + id: release-id-check run: | if [ -n "${{ needs.release.outputs.release-id }}" ]; then echo "Release ID propagated: ${{ needs.release.outputs.release-id }}" @@ -157,6 +163,7 @@ jobs: echo "Release ID propagation failed. Exiting.." exit 1 fi + echo "release_flag=true" >> "$GITHUB_OUTPUT" echo "start_time=$(date +%s)" >> "$GITHUB_ENV" shell: bash @@ -181,10 +188,10 @@ jobs: $VCPKG_DIR = "$env:USERPROFILE\Tools\vcpkg" $VCPKG_ROOT = "$VCPKG_DIR\installed\x64-windows-static" if (Test-Path $VCPKG_ROOT) { - Write-Host "::notice title=VCPKG Installation::Installed vcpkg found at '$VCPKG_DIR'" + Write-Host "Installed vcpkg found at '$VCPKG_DIR'" Add-Content -Path $env:GITHUB_ENV -Value ("vcpkg_dir=" + $VCPKG_DIR) } else { - Write-Host "::notice title=VCPKG Installation::Installing fresh copy of vcpkg" + Write-Host "Installing vcpkg" Add-Content -Path $env:GITHUB_ENV -Value "install_vcpkg=true" } shell: pwsh @@ -265,10 +272,10 @@ jobs: shell: bash publish-crate: + name: Publish crate needs: - - release - build-and-upload-artifact - if: needs.release.outputs.release-flag == 'true' + if: needs.build-and-upload-artifact.outputs.release-flag == 'true' runs-on: thevickypedia-lite steps: - uses: actions/checkout@v4 diff --git a/Cargo.toml b/Cargo.toml index 313b790..0e551c6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "SysMonk" -version = "0.1.0-beta" +version = "0.1.0-rc" description = "SysMonk is a highly efficient, lightweight API for resource monitoring that uses WebSockets for real-time streaming." license = "MIT" documentation = "https://docs.rs/SysMonk"