-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.45 KB
/
ci.yml
File metadata and controls
44 lines (38 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: CI
on:
pull_request:
push:
branches: [master]
env:
# Opt into Node.js 24 for GitHub Actions (actions/checkout@v4 and others
# still run on Node.js 20 by default, which is deprecated as of 2026-05-26).
# Node.js 24 will become the default on 2026-06-02.
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
test:
strategy:
fail-fast: false
matrix:
# Hosted Windows runners crash medical-audio's cpal device-enumeration
# tests (STATUS_ACCESS_VIOLATION) because they have no audio hardware.
# release.yml builds Windows installers via `tauri build` (no tests), so
# we keep Windows out of the CI test matrix.
platform: [macos-latest, ubuntu-24.04]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: swatinem/rust-cache@v2
- name: Install Linux deps
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev libasound2-dev libssl-dev pkg-config
- name: Workspace lib tests
run: cargo test --workspace --lib
- name: Sharing integration tests
env:
# Hosted macOS runners' multicast support is unreliable.
# Only Linux runners exercise the mDNS smoke test.
FERRISCRIBE_MDNS_TEST: ${{ runner.os == 'Linux' && '1' || '0' }}
run: cargo test -p medical-sharing