Added windows and macos runner (#554)

* Added windows and macos runner

* Made the bash script use bash on windows
This commit is contained in:
Trangar 2022-06-15 22:26:20 +02:00 committed by GitHub
parent bd07adea66
commit 21561c3eb8
1 changed files with 7 additions and 1 deletions

View File

@ -72,9 +72,13 @@
},
"test": {
"name": "Test",
"runs-on": "ubuntu-latest",
"strategy": {
"matrix": {
"runner": [
"ubuntu-latest",
"windows-latest",
"macos-latest"
],
"rust": [
"stable",
# "1.55.0" TODO: Pick latest stable version when we release 2.0
@ -94,6 +98,7 @@
]
}
},
"runs-on": "${{ matrix.runner }}",
"steps": [
{
"uses": "actions/checkout@v2",
@ -116,6 +121,7 @@ else\n
cargo test --no-default-features --features ${{ matrix.features }}\n
fi",
"name": "Run `cargo test` on all features",
"shell": "bash",
"env": {
"RUSTFLAGS": "-D warnings"
}