-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (68 loc) · 1.81 KB
/
beta_testing.yaml
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
66
67
68
69
name: Beta
# On every Sunday at 01:03
on:
schedule:
- cron: '3 1 * * 0'
workflow_dispatch:
push:
branches:
- master
jobs:
lint:
name: lint and format check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-beta
- name: Install cargo
uses: actions-rs/toolchain@v1
with:
toolchain: beta
profile: minimal
components: rustfmt, clippy
override: true
- name: Format check
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- name: Lint check
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: -- -D warnings -A dead_code -A improper_ctypes_definitions
rust_test:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-beta
- name: Install required libs (Ubuntu)
run: sudo apt-get install libxkbcommon-dev
- name: Install cargo
uses: actions-rs/toolchain@v1
with:
toolchain: beta
profile: minimal
override: true
- name: Run rust test
uses: actions-rs/cargo@v1
with:
command: test
args: --features capi