Repository navigation
65 lines (55 loc) · 1.76 KB
/
Copy pathchecks.yml
File metadata and controls
65 lines (55 loc) · 1.76 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Checks
# Tests and clippy's deny-level lints on Linux. Clippy warnings are reported
# but don't fail the run.
on:
push:
workflow_dispatch:
jobs:
test:
name: Tests and clippy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install Qt
run: |
python -m pip install aqtinstall==3.3.0
python -m aqt install-qt linux desktop 6.10.3 linux_gcc_64 --outputdir "$RUNNER_TEMP/Qt"
qmake=$(find "$RUNNER_TEMP/Qt/6.10.3" -maxdepth 3 -path '*/bin/*' -name qmake | head -n 1)
test -n "$qmake"
echo "QMAKE=$qmake" >> "$GITHUB_ENV"
echo "LD_LIBRARY_PATH=$($qmake -query QT_INSTALL_LIBS)" >> "$GITHUB_ENV"
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Cache Rust build artifacts
uses: Swatinem/rust-cache@v2
with:
key: checks
- name: Install Linux system dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends \
pkg-config \
build-essential \
libssl-dev \
libxdo-dev \
libayatana-appindicator3-dev \
libdbus-1-dev \
libudev-dev \
libxkbcommon-dev \
libx11-dev \
libx11-xcb-dev \
libxtst-dev \
libwayland-dev \
libclang-dev \
libgl-dev
- name: Clippy
run: cargo clippy --workspace --all-targets
- name: Tests
run: cargo test --workspace --exclude blockwork-linux-bridge