From d6deeff12cdfca8c43e62be4d8d3d015676751e9 Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Thu, 25 Dec 2025 11:43:08 -0500 Subject: [PATCH] ci: add install check in release pipeline (#1923) --- .github/workflows/build_releases.yml | 45 ++++++++++++++++++++++++++++ .github/workflows/ci.yml | 2 +- 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_releases.yml b/.github/workflows/build_releases.yml index 0a3e51c3..c9aa2051 100644 --- a/.github/workflows/build_releases.yml +++ b/.github/workflows/build_releases.yml @@ -729,3 +729,48 @@ jobs: retention-days: 3 name: release-build-rpm-${{ matrix.info.target }} path: release + + test-installing: + name: "Test Installing" + runs-on: ${{ matrix.info.os }} + container: ${{ matrix.info.container }} + timeout-minutes: 12 + strategy: + fail-fast: false + matrix: + info: + - { os: "ubuntu-22.04", target: "x86_64-unknown-linux-gnu" } + - { os: "macos-15", target: "aarch64-apple-darwin" } + - { os: "windows-2022", target: "x86_64-pc-windows-msvc" } + steps: + - name: Checkout repository + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + with: + fetch-depth: 1 + + - name: Read Rust version + shell: bash + run: | + VER=$(cat .github/ci/rust_version.txt) + echo "RUST_VERSION=$VER" >> $GITHUB_ENV + echo "$VER" + + - name: Set up Rust toolchain + uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 + with: + toolchain: ${{ matrix.info.rust || env.RUST_VERSION }} + target: ${{ matrix.info.target }} + + - name: Install (locked) + shell: bash + run: | + cargo install --path . --locked + btm -V + cargo uninstall bottom + + - name: Install (not locked) + shell: bash + run: | + cargo install --path . + btm -V + cargo uninstall bottom diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c8b601e..038ed293 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -116,7 +116,7 @@ jobs: uses: ClementTsang/cargo-action@2438cc5f3ba4e971289fffca2a00dedea6911f14 # v0.0.7 with: command: clippy - args: ${{ matrix.features }} --all-targets --workspace --target=${{ matrix.info.target }} -- -D warnings + args: ${{ matrix.features }} --all-targets --workspace --locked --target=${{ matrix.info.target }} -- -D warnings use-cross: ${{ matrix.info.cross }} cross-version: 0.2.5 env: