Skip to content

Commit 210b0ab

Browse files
committed
updated runners, and added a new test workflow
1 parent af14e1f commit 210b0ab

5 files changed

Lines changed: 76 additions & 13 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
include:
15-
- platform: ubuntu-22.04
15+
- platform: ubuntu-24.04
1616
target: x86_64-unknown-linux-gnu
1717
artifact_name: spent_amd64.deb
1818
artifact_path: src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/*.deb
@@ -51,7 +51,7 @@ jobs:
5151
rustup target add ${{ matrix.target }}
5252
5353
- name: Install Linux dependencies
54-
if: matrix.platform == 'ubuntu-22.04'
54+
if: matrix.platform == 'ubuntu-24.04'
5555
run: |
5656
sudo apt-get update
5757
sudo apt-get install -y \
@@ -97,7 +97,7 @@ jobs:
9797
run: npm run tauri build -- --target ${{ matrix.target }}
9898

9999
- name: Upload .deb artifact (Linux)
100-
if: matrix.platform == 'ubuntu-22.04'
100+
if: matrix.platform == 'ubuntu-24.04'
101101
continue-on-error: true
102102
uses: actions/upload-artifact@v4
103103
with:
@@ -106,7 +106,7 @@ jobs:
106106
if-no-files-found: warn
107107

108108
- name: Upload .AppImage artifact (Linux)
109-
if: matrix.platform == 'ubuntu-22.04'
109+
if: matrix.platform == 'ubuntu-24.04'
110110
continue-on-error: true
111111
uses: actions/upload-artifact@v4
112112
with:

.github/workflows/ci.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
check:
11+
runs-on: ubuntu-24.04
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
21+
- name: Setup Rust
22+
uses: dtolnay/rust-toolchain@stable
23+
with:
24+
components: clippy
25+
26+
- name: Install Linux dependencies
27+
run: |
28+
sudo apt-get update
29+
sudo apt-get install -y \
30+
libwebkit2gtk-4.1-dev \
31+
build-essential \
32+
curl \
33+
wget \
34+
file \
35+
libssl-dev \
36+
libgtk-3-dev \
37+
libayatana-appindicator3-dev \
38+
librsvg2-dev
39+
40+
- name: Cache cargo
41+
uses: actions/cache@v4
42+
with:
43+
path: |
44+
~/.cargo/registry
45+
~/.cargo/git
46+
src-tauri/target
47+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
48+
restore-keys: |
49+
${{ runner.os }}-cargo-
50+
51+
- name: Install frontend dependencies
52+
run: npm ci
53+
54+
- name: Svelte check
55+
run: npm run check
56+
57+
- name: Cargo clippy
58+
working-directory: src-tauri
59+
run: cargo clippy -- -D warnings
60+
61+
- name: Cargo test
62+
working-directory: src-tauri
63+
run: cargo test

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
platform: [ubuntu-22.04]
15+
platform: [ubuntu-24.04]
1616
runs-on: ${{ matrix.platform }}
1717

1818
steps:
@@ -28,7 +28,7 @@ jobs:
2828
uses: dtolnay/rust-toolchain@stable
2929

3030
- name: Install dependencies (Ubuntu)
31-
if: matrix.platform == 'ubuntu-22.04'
31+
if: matrix.platform == 'ubuntu-24.04'
3232
run: |
3333
sudo apt-get update
3434
sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Minimalist personal finance tracker for Linux desktop with cross-platform suppor
66

77
**[View More Screenshots](src-tauri/icons/Media)**
88

9-
> **Note:** Version 1.0.0 is "feature-complete" but has primarily been tested on Arch Linux. If you encounter issues on other distros or OSs, please open an Issue!
9+
> Spent is feature-complete and stable. It has primarily been tested on Arch Linux. If you encounter issues on other distros or OSs, please open an Issue!
1010
1111
[![AUR votes](https://img.shields.io/aur/votes/spent?logo=arch-linux&style=flat-square&color=blue)](https://aur.archlinux.org/packages/spent)
1212
[![GitHub stars](https://img.shields.io/github/stars/FrogSnot/Spent?style=flat-square&color=yellow)](https://github.com/FrogSnot/Spent)

src-tauri/Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)