Skip to content

Commit 6bc9c58

Browse files
committed
Check as-if-std only on nightly
1 parent 9d2c34e commit 6bc9c58

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/main.yml

+3
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,11 @@ jobs:
137137

138138
# Test that including as a submodule will still work, both with and without
139139
# the `backtrace` feature enabled.
140+
# Building as if part of std requires nightly features to be available
140141
- run: cargo build --manifest-path crates/as-if-std/Cargo.toml
142+
if: matrix.rust == 'nightly'
141143
- run: cargo build --manifest-path crates/as-if-std/Cargo.toml --no-default-features
144+
if: matrix.rust == 'nightly'
142145

143146
windows_arm64:
144147
name: Windows AArch64

ci/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
set -ex
44

55
cargo test --target $TARGET
6-
cargo build --target $TARGET --manifest-path crates/as-if-std/Cargo.toml
6+
rustc --version | grep nightly && cargo build --target $TARGET --manifest-path crates/as-if-std/Cargo.toml

0 commit comments

Comments
 (0)