-
Notifications
You must be signed in to change notification settings - Fork 11
52 lines (45 loc) · 1.2 KB
/
linux.yml
File metadata and controls
52 lines (45 loc) · 1.2 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
# http://webui.me
# https://github.com/webui-dev/webui
# Copyright (c) 2020-2026 Hassan Draga.
# Licensed under MIT License.
# All rights reserved.
#
# Special Thanks to Turiiya (https://github.com/ttytm)
name: Linux
on:
workflow_call:
jobs:
build_release:
runs-on: ubuntu-20.04
steps:
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: actions/checkout@v4
- 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') }}
- name: Build
run: cargo build --release
rustfmt:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Rustfmt check
run: cargo fmt -- --check
clippy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
- name: Clippy check
run: cargo clippy -- -D warnings