Skip to content

Commit f65eee4

Browse files
committed
ci: Adding Initial CI
Addingw workflows: * `lint` lints project. * `build` builds project.
1 parent d849e51 commit f65eee4

File tree

8 files changed

+66
-30
lines changed

8 files changed

+66
-30
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Build
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- main
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Install depencencies
17+
run: sudo apt-get install -y libxkbcommon-dev libsqlite3-dev
18+
- name: Configure rust-toolchain
19+
uses: dtolnay/rust-toolchain@stable
20+
with:
21+
components: rustfmt
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
- name: Build
25+
run: cargo build --verbose

.github/workflows/lint.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Lint
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- main
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
checks: write
17+
pull-requests: write
18+
steps:
19+
- name: Install depencencies
20+
run: sudo apt-get install -y libxkbcommon-dev libsqlite3-dev
21+
- name: Configure rust-toolchain
22+
uses: dtolnay/rust-toolchain@nightly
23+
with:
24+
components: rustfmt,clippy
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
- name: Lint using clippy
28+
uses: auguwu/clippy-action@1.4.0
29+
with:
30+
token: ${{ secrets.GITHUB_TOKEN }}
31+
- name: Format
32+
uses: mbrobbel/rustfmt-check@master
33+
with:
34+
token: ${{ secrets.GITHUB_TOKEN }}
35+
mode: review

README.md

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Features:
3030
- `just`
3131
- `libxkbcommon-dev`
3232
- `libcosmic`
33-
- `libsqlite3`
33+
- `libsqlite3-dev`
3434

3535
## Installation
3636

@@ -52,29 +52,6 @@ sudo just install
5252

5353
## Roadmap
5454

55-
### Initial Stable Release
56-
57-
> [!NOTE]
58-
> This list is not complete and subject to change.
59-
60-
In preparation for the first initial "stable" release, the following must be completed:
61-
62-
- [x] [Application] Throw exceptions when failed to invoke REST API requests.
63-
- [x] [UI] Notifications/toasts.
64-
- [x] Account deletion.
65-
- [x] Updating account.
66-
- [x] Adding account.
67-
- [x] Refreshing bookmarks for account.
68-
- [x] Refreshing bookmarks for all accounts.
69-
- [x] Bookmark deletion.
70-
- [x] Updating bookmark.
71-
- [x] Adding bookmark.
72-
- [x] [Application] logging.
73-
- [x] [Application] Avoid refreshing on every change/update.
74-
- [x] Update memory in-place when possible.
75-
- [x] [Application] "Lazy" bookmark refresh (do not block).
76-
- [ ] CI
77-
7855
### Future
7956

8057
Potential improvements:
@@ -88,6 +65,7 @@ Potential improvements:
8865
- [UI] Visual indicator for last sync status.
8966
- [UI] Indicators for `archived`, `unread`, `shared` bookmarks.
9067
- [Distribution] Flatpack release.
68+
- [Distribution] compiled binary in GitHub release.
9169
- [UI] Sort bookmarks.
9270

9371
Things to consider:

res/screenshots/accounts.png

11.4 KB
Loading

res/screenshots/bookmarks.png

37.3 KB
Loading

src/key_binds.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use std::collections::HashMap;
22

3+
use cosmic::iced::keyboard::Key;
34
use cosmic::widget::menu::key_bind::KeyBind;
45
use cosmic::widget::menu::key_bind::Modifier;
5-
use cosmic::iced::keyboard::Key;
66

77
use crate::app::MenuAction;
88

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ mod config;
33
mod db;
44
mod http;
55
mod i18n;
6+
mod key_binds;
67
mod menu;
78
mod models;
89
mod nav;
910
mod pages;
10-
mod key_binds;
1111

1212
use crate::config::{Config, CONFIG_VERSION};
13-
use cosmic::cosmic_config::{self, CosmicConfigEntry};
1413
use app::{Flags, APPID};
14+
use cosmic::cosmic_config::{self, CosmicConfigEntry};
1515

1616
fn main() -> cosmic::iced::Result {
1717
let requested_languages = i18n_embed::DesktopLanguageRequester::requested_languages();

src/menu.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ pub fn menu_bar<'a>(key_binds: &HashMap<KeyBind, MenuAction>) -> Element<'a, Mes
1717
root(fl!("file")),
1818
items(
1919
key_binds,
20-
vec![
21-
Item::Button(fl!("add-account"), MenuAction::AddAccount),
22-
],
20+
vec![Item::Button(fl!("add-account"), MenuAction::AddAccount)],
2321
),
2422
),
2523
Tree::with_children(

0 commit comments

Comments
 (0)