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