diff --git a/.github/workflows/rust.yml b/.github/workflows/rust-linux.yml similarity index 94% rename from .github/workflows/rust.yml rename to .github/workflows/rust-linux.yml index 31000a2..799cb68 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust-linux.yml @@ -1,4 +1,4 @@ -name: Rust +name: Rust Linux on: push: diff --git a/.github/workflows/rust-windows.yml b/.github/workflows/rust-windows.yml new file mode 100644 index 0000000..a9bada5 --- /dev/null +++ b/.github/workflows/rust-windows.yml @@ -0,0 +1,22 @@ +name: Rust Windows + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose diff --git a/README.md b/README.md index f8b2350..33177d7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -[![Rust](https://github.com/TrayRacers/Raytracing/actions/workflows/rust.yml/badge.svg)](https://github.com/TrayRacers/Raytracing/actions/workflows/rust.yml) +[![Linux](https://github.com/TrayRacers/Raytracing/actions/workflows/rust-linux.yml/badge.svg)](https://github.com/TrayRacers/Raytracing/actions/workflows/rust-linux.yml) +[![Windows](https://github.com/TrayRacers/Raytracing/actions/workflows/rust-windows.yml/badge.svg)](https://github.com/TrayRacers/Raytracing/actions/workflows/rust-windows.yml) # Raytracing