Skip to content

Commit

Permalink
Merge pull request #50 from rgwood/windows-dep
Browse files Browse the repository at this point in the history
Only build `windows` on Windows, CI naming
  • Loading branch information
Byron committed May 17, 2022
2 parents e0746f0 + ef7003a commit 883c5a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,23 @@ jobs:
override: true
components: rustfmt, clippy

- uses: actions-rs/cargo@v1
- name: cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --verbose
- uses: actions-rs/cargo@v1
- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose
- uses: actions-rs/cargo@v1
- name: cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- uses: actions-rs/cargo@v1
- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ rand = "0.8.3"
once_cell = "1.7.2"
env_logger = "0.9"

[build-dependencies]
[target.'cfg(windows)'.build-dependencies]
windows = "0.9.0"

[target.'cfg(target_os = "macos")'.dependencies]
Expand Down

0 comments on commit 883c5a4

Please sign in to comment.