Skip to content

Commit e0c1f2d

Browse files
authored
Merge pull request #40 from rust-lang/other-ci-improvements
Another batch of CI improvements
2 parents d2449fb + 888ed75 commit e0c1f2d

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- "**"
410

511
jobs:
612

tests/utils/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ pub(crate) fn init_named_workspace(name: &str) -> Result<Workspace, Error> {
2222
builder = builder.running_inside_docker(true);
2323
}
2424

25+
#[cfg(linux)]
26+
{
27+
builder = builder.sandbox_image(rustwide::cmd::SandboxImage::remote("ubuntu:latest")?);
28+
}
29+
2530
Ok(builder.init()?)
2631
}
2732

0 commit comments

Comments
 (0)