BlueGit

ict rusty-teams

Files

rusty-teams / .github / workflows / test.yml

test.yml

test.yml 1.8 KiB Download Raw
1# Tests per README "Quick start": `cargo test`. Linux and Windows are the supported
2# targets (README "Status"); macOS runs no tests here (its Ctrl/Cmd bindings fail the
3# key tests), it only builds - see build.yml.
4name: Test
5
6# Tests gate pushes to main; releases build from tags in build.yml.
7on:
8 push:
9 branches: [main]
10 workflow_dispatch:
11
12permissions:
13 contents: read
14
15concurrency:
16 group: ${{ github.workflow }}-${{ github.ref }}
17 cancel-in-progress: true
18
19env:
20 CARGO_TERM_COLOR: always
21
22jobs:
23 linux:
24 name: Linux
25 runs-on: ubuntu-latest
26 timeout-minutes: 90
27 # webrtc-sys compiles its C++ against the hermetic libc++ inside the libwebrtc
28 # artifact, which needs a clang as new as that libc++ (clang 21 today, see
29 # check_clang_version in vendor/webrtc-sys/build.rs). The distro clang is older
30 # (18 on ubuntu-24.04), so setup-linux installs clang 21 and these point every
31 # compile and the final link at it.
32 env:
33 CC: clang-21
34 CXX: clang++-21
35 CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER: clang-21
36 steps:
37 - uses: actions/checkout@v6
38
39 - uses: ./.github/actions/setup-linux
40
41 - uses: dtolnay/rust-toolchain@stable
42
43 - uses: Swatinem/rust-cache@v2
44 with:
45 key: test
46
47 - name: Tests
48 run: cargo test
49
50 windows:
51 name: Windows
52 runs-on: windows-latest
53 timeout-minutes: 90
54 defaults:
55 run:
56 shell: bash
57 steps:
58 - uses: actions/checkout@v6
59
60 - uses: dtolnay/rust-toolchain@stable
61
62 - uses: Swatinem/rust-cache@v2
63 with:
64 key: test
65
66 # After the toolchain: staging runs `cargo metadata`.
67 - uses: ./.github/actions/setup-windows
68
69 - name: Tests
70 run: cargo test --config "patch.crates-io.gpui-pre-windows.path=\"$GPUI_PRE_WINDOWS_PATCHED\""