mirror of
https://github.com/ClementTsang/bottom.git
synced 2026-05-03 21:40:32 +00:00
ci: add install check in release pipeline (#1923)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user