-
Notifications
You must be signed in to change notification settings - Fork 3
74 lines (70 loc) · 2.32 KB
/
validate.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
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
70
71
72
73
name: Validate PR
on:
workflow_call:
pull_request:
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
# 40 MiB stack
RUST_MIN_STACK: 40971520
RUST_LOG: "citadel=warn"
jobs:
fmt:
name: Cargo Fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Avarok-Cybersecurity/gh-actions-deps@master
- run: cargo fmt --check
clippy:
name: Cargo Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Avarok-Cybersecurity/gh-actions-deps@master
- name: install dependencies (ubuntu only)
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev gir1.2-javascriptcoregtk-4.1
- run: cargo clippy --all -- -D warnings
test:
name: Cargo Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: Avarok-Cybersecurity/gh-actions-deps@master
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev gir1.2-javascriptcoregtk-4.1
- run: cargo test
tauri-build:
name: Tauri Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
steps:
- uses: actions/checkout@v2
- uses: Avarok-Cybersecurity/gh-actions-deps@master
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 20
- uses: oven-sh/setup-bun@v1
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev gir1.2-javascriptcoregtk-4.1
- run: cargo install create-tauri-app
- run: cargo install tauri-cli --version 2.0.0-alpha.21
- run: bun install
- run: cargo tauri build