ci: add a build check for aarch64-linux-android ()

* 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:
Clement Tsang 2023-06-11 06:01:56 +00:00 committed by GitHub
parent 2a354f772f
commit 9ec95a9740
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 21 additions and 8 deletions

View File

@ -38,7 +38,6 @@ env:
CARGO_INCREMENTAL: 0
CARGO_PROFILE_DEV_DEBUG: 0
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
test_task:
auto_cancellation: false

View File

@ -25,7 +25,6 @@ env:
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
COMPLETION_DIR: "target/tmp/bottom/completion/"
MANPAGE_DIR: "target/tmp/bottom/manpage/"
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
# TODO: Maybe add retry job in case of timeouts?
jobs:

View File

@ -35,7 +35,6 @@ env:
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
COMPLETION_DIR: "target/tmp/bottom/completion/"
MANPAGE_DIR: "target/tmp/bottom/manpage/"
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@ -231,6 +230,15 @@ jobs:
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:
- name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
@ -248,14 +256,24 @@ jobs:
key: ${{ matrix.info.target }}
cache-all-crates: true
- name: Try building
- name: Try building with default 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
use-cross: ${{ matrix.info.cross }}
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:
name: "CI Pass Check"
needs: [supported, other-check]

View File

@ -15,7 +15,6 @@ on:
env:
CARGO_INCREMENTAL: 0
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

View File

@ -18,7 +18,6 @@ env:
CARGO_INCREMENTAL: 0
CARGO_PROFILE_DEV_DEBUG: 0
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
jobs:
initialize-release-job:

View File

@ -17,7 +17,6 @@ env:
CARGO_INCREMENTAL: 0
CARGO_PROFILE_DEV_DEBUG: 0
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
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?

View File

@ -1,6 +1,6 @@
//! Fallback disk info using sysinfo.
use sysinfo::{DiskExt, System, SystemExt};
use sysinfo::{DiskExt, SystemExt};
use crate::app::data_harvester::DataCollector;