Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ci.yml #1

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,17 @@ jobs:
name: Install cross tools
run: sudo apt-get install gcc-multilib g++-multilib

- name: Build rmdir exe
run: rustc rmdir.rs --out-dir ${{ runner.temp }}

- if: ${{ matrix.target == '' && matrix.c-compiler == '' }}
name: Build / test
run: |
rustc --version
cargo build --verbose
cargo test -- --nocapture
${{ runner.temp }}/rmdir target
cargo clean
- if: ${{ matrix.target == '' && matrix.c-compiler != '' }}
name: Build / test with alt compiler
env:
Expand All @@ -96,12 +101,16 @@ jobs:
rustc --version
cargo build --verbose
cargo test -- --nocapture
${{ runner.temp }}/rmdir target
cargo clean
- if: matrix.target != ''
name: Build / test 32-bit
run: |
rustc --version
cargo build --verbose --target=${{matrix.target}}
cargo test --target=${{matrix.target}} -- --nocapture
${{ runner.temp }}/rmdir target
cargo clean

conformance-tests:
name: Conformance Tests
Expand Down
5 changes: 5 additions & 0 deletions rmdir.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fn main() {
let path = std::env::args().nth(1).unwrap();
println!("Deleting {}", path);
std::fs::remove_dir_all(&path).unwrap();
}