-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (39 loc) · 948 Bytes
/
ci.yml
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:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
workflow_call:
jobs:
style:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust nightly toolchains
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: Check code style
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Install Rust stable toolchains
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Lint code by clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets --all-features -- -D warnings'
build:
uses: ./.github/workflows/build.yml
needs: [style]
with:
name: fontfor