Skip to content

Commit 9e56a01

Browse files
committed
CI: create test and build workflow
1 parent 7f5f845 commit 9e56a01

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/build.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
name: 🚧 Build
16+
steps:
17+
- uses: actions/checkout@v4
18+
- run: cargo build --release
19+
- name: Upload release artifact
20+
uses: actions/upload-artifact@v4
21+
with:
22+
name: phantomlink
23+
path: target/release/phantomlink
24+
25+
ensure-cargo-fmt:
26+
runs-on: ubuntu-latest
27+
name: 🎨 Format
28+
steps:
29+
- uses: actions/checkout@v4
30+
- run: cargo fmt -- --check
31+
32+
ensure-cargo-audit:
33+
runs-on: ubuntu-latest
34+
name: 🔒 Audit
35+
steps:
36+
- uses: actions/checkout@v4
37+
- run: cargo audit
38+
39+
ensure-cargo-test:
40+
runs-on: ubuntu-latest
41+
name: 🧪 Test
42+
steps:
43+
- uses: actions/checkout@v4
44+
- run: cargo test
45+
46+
ensure-cargo-clippy:
47+
runs-on: ubuntu-latest
48+
name: 📎 Clippy
49+
steps:
50+
- uses: actions/checkout@v4
51+
- run: cargo clippy
52+

0 commit comments

Comments
 (0)