Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
sagiegurari committed Dec 15, 2023
1 parent b1301e6 commit 24e8ada
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
rust: [stable, beta, nightly]
rust: [stable, beta, nightly, 1.73.0]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion src/lib/installer/crate_version_check_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ fn get_crate_version_from_info_valid() {

#[test]
fn get_crate_version_for_rustup_component() {
if (test::is_linux() && test::is_rust_channel(RustChannel::Stable)) || !ci_info::is_ci() {
if (!ci_info::is_ci() {
let mut version = get_crate_version("rustfmt", None);
assert!(version.is_none());

Expand Down
12 changes: 2 additions & 10 deletions src/lib/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,13 @@ pub(crate) fn on_test_startup() {
pub(crate) fn is_linux() -> bool {
on_test_startup();

if cfg!(target_os = "linux") {
true
} else {
false
}
cfg!(target_os = "linux")
}

pub(crate) fn is_windows() -> bool {
on_test_startup();

if cfg!(windows) {
true
} else {
false
}
cfg!(windows)
}

pub(crate) fn is_rust_channel(rust_channel: RustChannel) -> bool {
Expand Down

0 comments on commit 24e8ada

Please sign in to comment.