Skip to content

Commit 38aff25

Browse files
committed
feat(upload): first public release
0 parents  commit 38aff25

151 files changed

Lines changed: 39785 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
tags: ['v*']
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
# Run on all PRs and pushes
12+
fmt:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- run: rustup component add rustfmt
17+
- uses: Swatinem/rust-cache@v2
18+
- run: cargo fmt --check
19+
20+
clippy:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
- run: rustup component add clippy
25+
- uses: Swatinem/rust-cache@v2
26+
- run: cargo clippy --all-targets -- -D warnings
27+
28+
test:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: Swatinem/rust-cache@v2
33+
- run: cargo test
34+
35+
# Build and package only on release tags
36+
release-build:
37+
needs: [fmt, clippy, test]
38+
if: startsWith(github.ref, 'refs/tags/v')
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v4
42+
- uses: Swatinem/rust-cache@v2
43+
44+
- name: Install cargo-deb
45+
run: cargo install cargo-deb
46+
47+
- name: Build release binary
48+
run: cargo build --release
49+
50+
- name: Build .deb package
51+
run: cargo deb --no-build
52+
53+
- name: Upload artifacts
54+
uses: actions/upload-artifact@v4
55+
with:
56+
name: baco-deb-package
57+
path: target/debian/*.deb
58+
59+
- name: Upload release assets
60+
uses: softprops/action-gh-release@v1
61+
if: startsWith(github.ref, 'refs/tags/v')
62+
with:
63+
files: |
64+
target/debian/*.deb
65+
target/release/baco
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
cobertura.xml
2+
tarpaulin-report.html
3+
.opencode
4+
target
5+
baco-output
6+
config_*
7+
.baco
8+
findings.json
9+
checkpoint.json
10+
file_hashes.json

0 commit comments

Comments
 (0)