File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -729,3 +729,48 @@ jobs:
729729 retention-days : 3
730730 name : release-build-rpm-${{ matrix.info.target }}
731731 path : release
732+
733+ test-installing :
734+ name : " Test Installing"
735+ runs-on : ${{ matrix.info.os }}
736+ container : ${{ matrix.info.container }}
737+ timeout-minutes : 12
738+ strategy :
739+ fail-fast : false
740+ matrix :
741+ info :
742+ - { os: "ubuntu-22.04", target: "x86_64-unknown-linux-gnu" }
743+ - { os: "macos-15", target: "aarch64-apple-darwin" }
744+ - { os: "windows-2022", target: "x86_64-pc-windows-msvc" }
745+ steps :
746+ - name : Checkout repository
747+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
748+ with :
749+ fetch-depth : 1
750+
751+ - name : Read Rust version
752+ shell : bash
753+ run : |
754+ VER=$(cat .github/ci/rust_version.txt)
755+ echo "RUST_VERSION=$VER" >> $GITHUB_ENV
756+ echo "$VER"
757+
758+ - name : Set up Rust toolchain
759+ uses : dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9
760+ with :
761+ toolchain : ${{ matrix.info.rust || env.RUST_VERSION }}
762+ target : ${{ matrix.info.target }}
763+
764+ - name : Install (locked)
765+ shell : bash
766+ run : |
767+ cargo install --path . --locked
768+ btm -V
769+ cargo uninstall bottom
770+
771+ - name : Install (not locked)
772+ shell : bash
773+ run : |
774+ cargo install --path .
775+ btm -V
776+ cargo uninstall bottom
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ jobs:
116116 uses : ClementTsang/cargo-action@2438cc5f3ba4e971289fffca2a00dedea6911f14 # v0.0.7
117117 with :
118118 command : clippy
119- args : ${{ matrix.features }} --all-targets --workspace --target=${{ matrix.info.target }} -- -D warnings
119+ args : ${{ matrix.features }} --all-targets --workspace --locked -- target=${{ matrix.info.target }} -- -D warnings
120120 use-cross : ${{ matrix.info.cross }}
121121 cross-version : 0.2.5
122122 env :
You can’t perform that action at this time.
0 commit comments