mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-30 00:55:00 +02:00
ci: add a build check for aarch64-linux-android (#1124)
* ci: add a build check for aarch64-linux-android * appease clippy * use 1.67.0 for Android due to NDK issue * remove sparse since it is default now for 1.70 and causes issues with older versions anyway
This commit is contained in:
parent
2a354f772f
commit
9ec95a9740
@ -38,7 +38,6 @@ env:
|
|||||||
CARGO_INCREMENTAL: 0
|
CARGO_INCREMENTAL: 0
|
||||||
CARGO_PROFILE_DEV_DEBUG: 0
|
CARGO_PROFILE_DEV_DEBUG: 0
|
||||||
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
||||||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
|
|
||||||
|
|
||||||
test_task:
|
test_task:
|
||||||
auto_cancellation: false
|
auto_cancellation: false
|
||||||
|
1
.github/workflows/build_releases.yml
vendored
1
.github/workflows/build_releases.yml
vendored
@ -25,7 +25,6 @@ env:
|
|||||||
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
||||||
COMPLETION_DIR: "target/tmp/bottom/completion/"
|
COMPLETION_DIR: "target/tmp/bottom/completion/"
|
||||||
MANPAGE_DIR: "target/tmp/bottom/manpage/"
|
MANPAGE_DIR: "target/tmp/bottom/manpage/"
|
||||||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
|
|
||||||
|
|
||||||
# TODO: Maybe add retry job in case of timeouts?
|
# TODO: Maybe add retry job in case of timeouts?
|
||||||
jobs:
|
jobs:
|
||||||
|
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@ -35,7 +35,6 @@ env:
|
|||||||
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
||||||
COMPLETION_DIR: "target/tmp/bottom/completion/"
|
COMPLETION_DIR: "target/tmp/bottom/completion/"
|
||||||
MANPAGE_DIR: "target/tmp/bottom/manpage/"
|
MANPAGE_DIR: "target/tmp/bottom/manpage/"
|
||||||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
@ -231,6 +230,15 @@ jobs:
|
|||||||
rust: stable,
|
rust: stable,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Android ARM64
|
||||||
|
- {
|
||||||
|
os: "ubuntu-latest",
|
||||||
|
target: "aarch64-linux-android",
|
||||||
|
cross: true,
|
||||||
|
rust: 1.67.0, # See https://github.com/cross-rs/cross/issues/1222 for more details
|
||||||
|
no-default-features: true,
|
||||||
|
}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
||||||
@ -248,14 +256,24 @@ jobs:
|
|||||||
key: ${{ matrix.info.target }}
|
key: ${{ matrix.info.target }}
|
||||||
cache-all-crates: true
|
cache-all-crates: true
|
||||||
|
|
||||||
- name: Try building
|
- name: Try building with default features
|
||||||
uses: ClementTsang/cargo-action@v0.0.3
|
uses: ClementTsang/cargo-action@v0.0.3
|
||||||
|
if: ${{ matrix.info.no-default-features != true }}
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
args: --all-targets --verbose --target=${{ matrix.info.target }} --locked
|
args: --all-targets --verbose --target=${{ matrix.info.target }} --locked
|
||||||
use-cross: ${{ matrix.info.cross }}
|
use-cross: ${{ matrix.info.cross }}
|
||||||
cross-version: 0.2.5
|
cross-version: 0.2.5
|
||||||
|
|
||||||
|
- name: Try building with no features
|
||||||
|
uses: ClementTsang/cargo-action@v0.0.3
|
||||||
|
if: ${{ matrix.info.no-default-features == true }}
|
||||||
|
with:
|
||||||
|
command: build
|
||||||
|
args: --all-targets --verbose --target=${{ matrix.info.target }} --locked --no-default-features
|
||||||
|
use-cross: ${{ matrix.info.cross }}
|
||||||
|
cross-version: 0.2.5
|
||||||
|
|
||||||
completion:
|
completion:
|
||||||
name: "CI Pass Check"
|
name: "CI Pass Check"
|
||||||
needs: [supported, other-check]
|
needs: [supported, other-check]
|
||||||
|
1
.github/workflows/coverage.yml
vendored
1
.github/workflows/coverage.yml
vendored
@ -15,7 +15,6 @@ on:
|
|||||||
env:
|
env:
|
||||||
CARGO_INCREMENTAL: 0
|
CARGO_INCREMENTAL: 0
|
||||||
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
||||||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
1
.github/workflows/deployment.yml
vendored
1
.github/workflows/deployment.yml
vendored
@ -18,7 +18,6 @@ env:
|
|||||||
CARGO_INCREMENTAL: 0
|
CARGO_INCREMENTAL: 0
|
||||||
CARGO_PROFILE_DEV_DEBUG: 0
|
CARGO_PROFILE_DEV_DEBUG: 0
|
||||||
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
||||||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
initialize-release-job:
|
initialize-release-job:
|
||||||
|
1
.github/workflows/nightly.yml
vendored
1
.github/workflows/nightly.yml
vendored
@ -17,7 +17,6 @@ env:
|
|||||||
CARGO_INCREMENTAL: 0
|
CARGO_INCREMENTAL: 0
|
||||||
CARGO_PROFILE_DEV_DEBUG: 0
|
CARGO_PROFILE_DEV_DEBUG: 0
|
||||||
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
||||||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# TODO: Add a pre-job check to skip if no change; may want to add something to check if there is a new rust version/week limit of skips?
|
# TODO: Add a pre-job check to skip if no change; may want to add something to check if there is a new rust version/week limit of skips?
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
//! Fallback disk info using sysinfo.
|
//! Fallback disk info using sysinfo.
|
||||||
|
|
||||||
use sysinfo::{DiskExt, System, SystemExt};
|
use sysinfo::{DiskExt, SystemExt};
|
||||||
|
|
||||||
use crate::app::data_harvester::DataCollector;
|
use crate::app::data_harvester::DataCollector;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user