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
name: Rust
on:
push:
branches:
pull_request:
branches:
env:
CARGO_TERM_COLOR: always
jobs:
check-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# - uses: Swatinem/rust-cache@v2
# with:
# key: ${{ runner.os }}-cargo-${{ github.ref }}-${{ hashFiles('**/Cargo.lock') }}
# cache-on-failure: true
# cache-directories: |
# ~/.cargo/registry
# ~/.cargo/git
# ./target
# prefix-key: ${{ runner.os }}-cargo-${{ github.ref }}-
- name: Install mold
run: sudo apt-get install mold libx11-dev libdbus-1-dev -y
- name: Check Native
run: cargo check
- name: Check WInit
run: cargo check --features winit
- name: Doc tests
run: cargo test --doc --all
check-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4.0.0
- name: Check Native
run: cargo check
- name: Check WInit
run: cargo check --features winit