Skip to content

Commit b23fc74

Browse files
committed
ci: use alsa:null device when running beep on Linux
1 parent 74c39dd commit b23fc74

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/sanitizers.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,20 @@ jobs:
9999
100100
- name: Build and run beep example with sanitizer
101101
run: |
102-
cargo +nightly run \
103-
-Zbuild-std \
104-
--target ${{ matrix.target }} \
105-
--example beep \
106-
--verbose
102+
if [ "$RUNNER_OS" == "Linux" ]; then
103+
cargo +nightly run \
104+
-Zbuild-std \
105+
--target ${{ matrix.target }} \
106+
--example beep \
107+
--verbose \
108+
-- --device "alsa:null"
109+
else
110+
cargo +nightly run \
111+
-Zbuild-std \
112+
--target ${{ matrix.target }} \
113+
--example beep \
114+
--verbose
115+
fi
107116
108117
- name: Upload sanitizer logs
109118
if: failure()

0 commit comments

Comments
 (0)