Skip to content

Commit a2f62fa

Browse files
committed
chore(ci): reduce concurrency on Windows and macOS hosts
1 parent 0fc00db commit a2f62fa

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ jobs:
9797
strategy:
9898
fail-fast: false
9999
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
102101
os: [ubuntu-20.04, windows-2019]
103102
features: [all-features]
104103
steps:
@@ -114,6 +113,12 @@ jobs:
114113
if: startsWith(matrix.os, 'ubuntu-')
115114
run: sudo apt-get install libusb-1.0-0-dev libudev-dev
116115

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+
117122
- name: Exclude crates
118123
shell: bash
119124
run: |
@@ -124,7 +129,7 @@ jobs:
124129
uses: actions-rs/cargo@v1
125130
with:
126131
command: test
127-
args: --workspace
132+
args: --workspace -- ${{ env.testflags }}
128133
env:
129134
RUST_LOG: debug
130135

0 commit comments

Comments
 (0)