File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 97
97
strategy :
98
98
fail-fast : false
99
99
matrix :
100
- # TODO: Add `macos-10.15` after addressing the time inaccuracy that
101
- # causes some tests to fail
100
+ # TODO: Add `macos-10.15` after addressing `riscv-rt` build failure
102
101
os : [ubuntu-20.04, windows-2019]
103
102
features : [all-features]
104
103
steps :
@@ -114,6 +113,12 @@ jobs:
114
113
if : startsWith(matrix.os, 'ubuntu-')
115
114
run : sudo apt-get install libusb-1.0-0-dev libudev-dev
116
115
116
+ # Some tests are sensitive to timing and can fail
117
+ # in Windows and macOS VMs
118
+ - name : Limit concurrency
119
+ if : " !startsWith(matrix.os, 'ubuntu-')"
120
+ run : echo "testflags=--test-threads=1" >> $GITHUB_ENV
121
+
117
122
- name : Exclude crates
118
123
shell : bash
119
124
run : |
@@ -124,7 +129,7 @@ jobs:
124
129
uses : actions-rs/cargo@v1
125
130
with :
126
131
command : test
127
- args : --workspace
132
+ args : --workspace -- ${{ env.testflags }}
128
133
env :
129
134
RUST_LOG : debug
130
135
You can’t perform that action at this time.
0 commit comments