Skip to content

Commit 6447e91

Browse files
committed
feat(linux): scaffold cargo workspace with core, app, and postgres driver
1 parent 5f55381 commit 6447e91

23 files changed

Lines changed: 3049 additions & 3 deletions

.github/workflows/build-linux.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build Linux
2+
3+
on:
4+
push:
5+
branches: [main, "linux/**", "docs/linux-**", "feat/linux-**"]
6+
paths:
7+
- "linux/**"
8+
- ".github/workflows/build-linux.yml"
9+
pull_request:
10+
paths:
11+
- "linux/**"
12+
- ".github/workflows/build-linux.yml"
13+
14+
jobs:
15+
fast:
16+
name: Fast checks
17+
runs-on: ubuntu-24.04
18+
defaults:
19+
run:
20+
working-directory: linux
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Install system dependencies
24+
run: |
25+
sudo apt-get update
26+
sudo apt-get install -y \
27+
build-essential \
28+
pkg-config \
29+
libgtk-4-dev \
30+
libadwaita-1-dev \
31+
libssl-dev \
32+
libsecret-1-dev
33+
- uses: dtolnay/rust-toolchain@1.92
34+
with:
35+
components: rustfmt, clippy
36+
- uses: Swatinem/rust-cache@v2
37+
with:
38+
workspaces: linux
39+
- name: Format check
40+
run: cargo fmt --all -- --check
41+
- name: Clippy
42+
run: cargo clippy --all-targets -- -D warnings
43+
- name: Build
44+
run: cargo build --workspace
45+
- name: Unit tests
46+
run: cargo test --workspace --lib

linux/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
target/
2+
*.swp
3+
.DS_Store

linux/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ cargo fmt --all # format
2222
| `rustfmt` | `rustfmt.toml` at workspace root | Run before commit. Pre-commit hook enforces it. |
2323
| `clippy` | `clippy.toml` at workspace root | All workspace crates pass with `-D warnings`. New lints are negotiated per PR. |
2424
| Edition | 2024 | Set per workspace. Do not override per crate. |
25-
| MSRV | 1.83 | Pinned in `rust-toolchain.toml`. Bumped only with discussion. |
25+
| MSRV | 1.92 | Pinned in `rust-toolchain.toml`. Bumped only with discussion. |
2626

2727
Conventions, beyond what `rustfmt` decides:
2828

0 commit comments

Comments
 (0)