diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3eea53f6..12b014ad 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -34,7 +34,7 @@ jobs: - uses: actions-rs/toolchain@v1 with: components: clippy - toolchain: nightly + toolchain: nightly-2021-09-30 profile: minimal target: x86_64-unknown-linux-musl override: true @@ -64,7 +64,7 @@ jobs: - uses: actions-rs/toolchain@v1 with: components: clippy - toolchain: nightly + toolchain: nightly-2021-09-30 profile: minimal target: x86_64-unknown-linux-musl override: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 05f5a67d..e84ecfc0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: - uses: actions-rs/toolchain@v1 with: target: x86_64-unknown-linux-musl - toolchain: nightly + toolchain: nightly-2021-09-30 override: true - uses: actions-rs/cargo@v1 with: @@ -39,7 +39,7 @@ jobs: - uses: actions-rs/toolchain@v1 with: target: x86_64-unknown-linux-musl - toolchain: nightly + toolchain: nightly-2021-09-30 override: true - run: cargo test ${{ matrix.profile.flag }} working-directory: internal/${{ matrix.crate }} diff --git a/build.rs b/build.rs index 2a8d7fe0..eb7b3a2b 100644 --- a/build.rs +++ b/build.rs @@ -77,9 +77,7 @@ fn build_rs_tests(in_path: &Path, out_path: &Path) { .status() .unwrap_or_else(|_| panic!("failed to compile {:#?}", &in_source)); - if !status.success() { - panic!("Failed to compile {:?}", &in_source); - } + assert!(status.success(), "Failed to compile {:?}", &in_source); } } @@ -105,9 +103,7 @@ fn build_cc_tests(in_path: &Path, out_path: &Path) { .status() .unwrap_or_else(|_| panic!("failed to compile {:#?}", &in_source)); - if !status.success() { - panic!("Failed to compile {:?}", &in_source); - } + assert!(status.success(), "Failed to compile {:?}", &in_source); } } @@ -231,7 +227,7 @@ fn main() { .envs(&filtered_env) .stdout(stdout) .stderr(stderr) - .arg("+nightly") + .arg("+nightly-2021-09-30") .arg("build") .args(profile) .arg("--target-dir")