-
Notifications
You must be signed in to change notification settings - Fork 1
115 lines (108 loc) · 2.92 KB
/
Copy pathmain.yaml
File metadata and controls
115 lines (108 loc) · 2.92 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: ci
on:
push:
branches: [master]
tags:
- "v*"
pull_request:
branches: [master]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
security_audit:
name: security_audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install cargo-audit from crates.io
uses: baptiste0928/cargo-install@v3
with:
crate: cargo-audit
version: "0.22.1"
- run: >-
cargo audit
--ignore RUSTSEC-2022-0093
--ignore RUSTSEC-2024-0344
--ignore RUSTSEC-2024-0421
--ignore RUSTSEC-2025-0022
--ignore RUSTSEC-2025-0009
--ignore RUSTSEC-2025-0004
--ignore RUSTSEC-2024-0357
--ignore RUSTSEC-2024-0336
--ignore RUSTSEC-2025-0055
--ignore RUSTSEC-2024-0437
--ignore RUSTSEC-2025-0134
--ignore RUSTSEC-2026-0009
--ignore RUSTSEC-2026-0104
--ignore RUSTSEC-2026-0098
--ignore RUSTSEC-2026-0099
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt, clippy
toolchain: stable
- name: Install cargo-sort from crates.io
uses: baptiste0928/cargo-install@v3
with:
crate: cargo-sort
version: "2.0.2"
- run: cargo sort --workspace --check
- run: cargo fmt --all --check
- run: cargo clippy
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Building programs
run: cargo build --release
- name: Upload jito-bell
uses: actions/upload-artifact@v4
with:
name: jito-bell
path: target/release/jito-bell
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Run tests
run: cargo test --workspace
- name: Run doc tests
run: cargo test --doc
- name: Check examples
run: cargo check --examples
create_release:
name: Create Release
needs:
- build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
merge-multiple: true
- run: ls -lh
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
jito-bell
fail_on_unmatched_files: true