Skip to content
This repository was archived by the owner on Sep 6, 2024. It is now read-only.

Commit 866fb7e

Browse files
committed
clean formatting & add more CI functionality
1 parent 6f87039 commit 866fb7e

File tree

4 files changed

+89
-40
lines changed

4 files changed

+89
-40
lines changed

.github/workflows/ci-freebsd.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,25 @@ jobs:
2323
run: |
2424
shards install
2525
shards build --stats --progress --time --verbose --no-color
26+
- name: Run program with -h
27+
uses: vmactions/[email protected]
28+
with:
29+
usesh: true
30+
sync: sshfs
31+
prepare: |
32+
pkg install -y crystal shards
33+
run: |
34+
shards install
35+
shards build --stats --progress --time --verbose --no-color
36+
./bin/crfetch -h
37+
- name: Run program
38+
uses: vmactions/[email protected]
39+
with:
40+
usesh: true
41+
sync: sshfs
42+
prepare: |
43+
pkg install -y crystal shards
44+
run: |
45+
shards install
46+
shards build --stats --progress --time --verbose --no-color
47+
./bin/crfetch

.github/workflows/ci-linux.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v4
19-
- name: Install dependencies
20-
run: shards install
2119
- name: Run build
22-
run: shards build --stats --progress --time --verbose --no-color
20+
run: |
21+
shards install
22+
shards build --stats --progress --time --verbose --no-color
23+
- name: Run program with -h
24+
run: |
25+
./bin/crfetch -h
26+
- name: Run program
27+
run: |
28+
./bin/crfetch

.github/workflows/ci-openbsd.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,25 @@ jobs:
2323
run: |
2424
shards install
2525
shards build --stats --progress --time --verbose --no-color
26+
- name: Run program with -h
27+
uses: vmactions/[email protected]
28+
with:
29+
usesh: true
30+
sync: sshfs
31+
prepare: |
32+
pkg_add crystal
33+
run: |
34+
shards install
35+
shards build --stats --progress --time --verbose --no-color
36+
./bin/crfetch -h
37+
- name: Run program
38+
uses: vmactions/[email protected]
39+
with:
40+
usesh: true
41+
sync: sshfs
42+
prepare: |
43+
pkg_add crystal
44+
run: |
45+
shards install
46+
shards build --stats --progress --time --verbose --no-color
47+
./bin/crfetch

README.org

Lines changed: 36 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,33 @@
11
* Cr(y)fetch
22
#+begin_html
33
<center>
4-
<div style="max-width: fit-content; margin-inline: auto;">
5-
<a href="https://github.com/Izder456/crfetch/blob/main/LICENSE">
6-
<img alt="License" src="https://badgen.net/github/license/izder456/crfetch">
7-
</a>
8-
<a href="https://github.com/Izder456/crfetch/stargazers">
9-
<img alt="Stargazers" src="https://badgen.net/github/stars/izder456/crfetch">
10-
</a>
11-
<br>
12-
<a href="https://github.com/Izder456/crfetch/actions/workflows/ci-linux.yml">
13-
<img src="https://github.com/Izder456/crfetch/actions/workflows/ci-linux.yml/badge.svg" alt="Linux CI">
14-
</a>
15-
<a href="https://github.com/Izder456/crfetch/actions/workflows/ci-freebsd.yml">
16-
<img src="https://github.com/Izder456/crfetch/actions/workflows/ci-freebsd.yml/badge.svg" alt="FreeBSD CI">
17-
</a>
18-
<a href="https://github.com/Izder456/crfetch/actions/workflows/ci-openbsd.yml">
19-
<img src="https://github.com/Izder456/crfetch/actions/workflows/ci-openbsd.yml/badge.svg" alt="OpenBSD CI">
20-
</a>
21-
</div>
22-
<br>
23-
<div>
24-
<img src="assets/screenshot.png" />
25-
</div>
4+
<div style="max-width: fit-content; margin-inline: auto;">
5+
<a href="https://github.com/Izder456/crfetch/blob/main/LICENSE">
6+
<img alt="License" src="https://badgen.net/github/license/izder456/crfetch">
7+
</a>
8+
<a href="https://github.com/Izder456/crfetch/stargazers">
9+
<img alt="Stargazers" src="https://badgen.net/github/stars/izder456/crfetch">
10+
</a>
11+
<br>
12+
<a href="https://github.com/Izder456/crfetch/actions/workflows/ci-linux.yml">
13+
<img src="https://github.com/Izder456/crfetch/actions/workflows/ci-linux.yml/badge.svg" alt="Linux CI">
14+
</a>
15+
<a href="https://github.com/Izder456/crfetch/actions/workflows/ci-freebsd.yml">
16+
<img src="https://github.com/Izder456/crfetch/actions/workflows/ci-freebsd.yml/badge.svg" alt="FreeBSD CI">
17+
</a>
18+
<a href="https://github.com/Izder456/crfetch/actions/workflows/ci-openbsd.yml">
19+
<img src="https://github.com/Izder456/crfetch/actions/workflows/ci-openbsd.yml/badge.svg" alt="OpenBSD CI">
20+
</a>
21+
</div>
22+
<br>
23+
<div>
24+
<img src="assets/screenshot.png" />
25+
</div>
2626
</center>
2727
#+end_html
2828

2929
/a system fetching utility, written in crystal/
3030

31-
3231
** Supported Operating Systems
3332

3433
- Linux
@@ -44,26 +43,26 @@
4443

4544
** Why another fetching utility?
4645

47-
- *It's fast*
46+
- *It's fast*
4847

49-
| Command | Mean [ms] | Min [ms] | Max [ms] | ReLative |
50-
|-------------+---------------+----------+----------+--------------|
51-
| =crfetch= | 23.5 ± 3.8 | 17.3 | 36.2 | 1.00 |
52-
| =ufetch= | 77.9 ± 3.2 | 71.6 | 89.0 | 3.32 ± 0.56 |
53-
| =pfetch= | 41.9 ± 13.4 | 32.8 | 139.3 | 1.79 ± 0.64 |
54-
| =screenfetch= | 863.3 ± 125.4 | 771.6 | 1897.3 | 36.80 ± 8.03 |
55-
| =neofetch= | 754.6 ± 107.3 | 557.1 | 1313.4 | 32.17 ± 6.95 |
48+
| Command | Mean [ms] | Min [ms] | Max [ms] | ReLative |
49+
|-------------+---------------+----------+----------+--------------|
50+
| =crfetch= | 23.5 ± 3.8 | 17.3 | 36.2 | 1.00 |
51+
| =ufetch= | 77.9 ± 3.2 | 71.6 | 89.0 | 3.32 ± 0.56 |
52+
| =pfetch= | 41.9 ± 13.4 | 32.8 | 139.3 | 1.79 ± 0.64 |
53+
| =screenfetch= | 863.3 ± 125.4 | 771.6 | 1897.3 | 36.80 ± 8.03 |
54+
| =neofetch= | 754.6 ± 107.3 | 557.1 | 1313.4 | 32.17 ± 6.95 |
5655

57-
/tested on a HP Z420 Workstation with an Intel(R) Xeon(R) E5-1607 v2 and 64GB ECC DDR3 RAM running FreeBSD 14.1p2/
56+
/tested on a HP Z420 Workstation with an Intel(R) Xeon(R) E5-1607 v2 and 64GB ECC DDR3 RAM running FreeBSD 14.1p2/
5857

59-
- *It's minimal*
58+
- *It's minimal*
6059

61-
Configuring is done via runtime command switches. You want a config file? Add the switches you want to your shell profile as an alias.
60+
Configuring is done via runtime command switches. You want a config file? Add the switches you want to your shell profile as an alias.
6261

63-
- *It's fun to write crystal*
62+
- *It's fun to write crystal*
6463

65-
IMO, crystal doesn't get enough love (+probably cos the tooling kinda sucks+).
66-
I also wanted an excuse to learn a new programming language.
64+
IMO, crystal doesn't get enough love (+probably cos the tooling kinda sucks+).
65+
I also wanted an excuse to learn a new programming language.
6766

6867
* Deps
6968

0 commit comments

Comments
 (0)