Skip to content

Commit 00cc19e

Browse files
authored
Merge pull request #2277 from fastfetch-cli/dev
Release v2.62.0
2 parents e5d6006 + bf0564f commit 00cc19e

730 files changed

Lines changed: 33447 additions & 33735 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.

.clang-format

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# find . -type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp" \) ! -path "src/3rdparty/*" -print0 | xargs -0 clang-format -i
2+
3+
BasedOnStyle: LLVM
4+
Language: Cpp
5+
6+
UseTab: Never
7+
IndentWidth: 4
8+
TabWidth: 4
9+
ContinuationIndentWidth: 4
10+
11+
ColumnLimit: 0
12+
ReflowComments: true
13+
14+
BreakBeforeBraces: Attach
15+
BreakBeforeCloseBracketBracedList: true
16+
BraceWrapping:
17+
AfterControlStatement: false
18+
AfterEnum: false
19+
AfterFunction: false
20+
AfterStruct: false
21+
AfterUnion: false
22+
AfterExternBlock: false
23+
BeforeElse: false
24+
BeforeCatch: false
25+
SplitEmptyFunction: false
26+
SplitEmptyRecord: false
27+
SplitEmptyNamespace: false
28+
IndentExternBlock: NoIndent
29+
30+
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
31+
AllowShortLoopsOnASingleLine: true
32+
AllowShortBlocksOnASingleLine: true
33+
AllowShortFunctionsOnASingleLine: Empty
34+
InsertBraces: true
35+
36+
PointerAlignment: Left
37+
DerivePointerAlignment: false
38+
SpaceBeforeParens: ControlStatements
39+
SpacesInParentheses: false
40+
SpaceAfterCStyleCast: true
41+
SpacesInLineCommentPrefix:
42+
Minimum: 1
43+
Maximum: 1
44+
SpacesInContainerLiterals: true
45+
46+
SortIncludes: Never
47+
IndentPPDirectives: BeforeHash
48+
PPIndentWidth: 4
49+
50+
IndentCaseLabels: true
51+
52+
AlignConsecutiveAssignments: false
53+
AlignConsecutiveDeclarations: false
54+
AlignOperands: DontAlign
55+
56+
BinPackParameters: false
57+
BinPackArguments: false
58+
AlignAfterOpenBracket: DontAlign
59+
BracedInitializerIndentWidth: 4
60+
Cpp11BracedListStyle: Block
61+
62+
ForEachMacros:
63+
- FF_LIST_FOR_EACH
64+
- yyjson_obj_foreach
65+
- yyjson_arr_foreach
66+
- yyjson_mut_obj_foreach
67+
- yyjson_mut_arr_foreach
68+
69+
AttributeMacros:
70+
- FF_A_FALLTHROUGH
71+
- FF_A_DEPRECATED
72+
- FF_A_CLEANUP
73+
- FF_A_NODISCARD
74+
- FF_A_PRINTF
75+
- FF_A_SCANF
76+
- FF_A_NONNULL
77+
- FF_A_RETURNS_NONNULL
78+
- FF_A_UNUSED
79+
- FF_A_PACKED
80+
- FF_A_WEAK_IMPORT
81+
82+
MaxEmptyLinesToKeep: 1
83+
KeepEmptyLinesAtTheStartOfBlocks: false

.clang-format-ignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
src/3rdparty/**
2+
build/**
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Reusable DragonFly amd64
2+
3+
on:
4+
workflow_call:
5+
6+
env:
7+
CMAKE_BUILD_TYPE: ${{ vars.CMAKE_BUILD_TYPE || 'RelWithDebInfo' }}
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: checkout repository
14+
uses: actions/checkout@v6
15+
16+
- name: run VM
17+
uses: vmactions/dragonflybsd-vm@v1
18+
with:
19+
usesh: yes
20+
envs: 'CMAKE_BUILD_TYPE'
21+
prepare: |
22+
uname -a
23+
pkg update
24+
pkg install -y llvm cmake git pkgconf binutils wayland vulkan-headers vulkan-loader libxcb libXrandr libX11 libdrm glib dconf dbus sqlite3-tcl egl opencl ocl-icd v4l_compat chafa libelf
25+
26+
run: |
27+
env CC=clang cmake -DSET_TWEAK=Off -DBUILD_TESTS=On -DENABLE_EMBEDDED_PCIIDS=On -DENABLE_EMBEDDED_AMDGPUIDS=On .
28+
cmake --build . --target package --verbose -j4
29+
./fastfetch --list-features
30+
time ./fastfetch -c presets/ci.jsonc --stat false
31+
time ./fastfetch -c presets/ci.jsonc --format json
32+
time ./flashfetch
33+
ldd fastfetch
34+
ctest --output-on-failure
35+
36+
- name: upload artifacts
37+
uses: actions/upload-artifact@v7
38+
with:
39+
name: fastfetch-dragonfly-amd64
40+
path: ./fastfetch-*.*
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Reusable FreeBSD amd64
2+
3+
on:
4+
workflow_call:
5+
6+
env:
7+
CMAKE_BUILD_TYPE: ${{ vars.CMAKE_BUILD_TYPE || 'RelWithDebInfo' }}
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: checkout repository
14+
uses: actions/checkout@v6
15+
16+
- name: run VM
17+
uses: cross-platform-actions/action@master
18+
with:
19+
operating_system: freebsd
20+
architecture: x86-64
21+
cpu_count: 4
22+
shell: bash
23+
version: '15.0'
24+
environment_variables: 'CMAKE_BUILD_TYPE'
25+
run: |
26+
uname -a
27+
sudo pkg update
28+
sudo pkg install -y cmake git pkgconf binutils wayland vulkan-headers vulkan-loader libxcb libXrandr libX11 libdrm glib dconf dbus sqlite3-tcl egl opencl ocl-icd v4l_compat chafa
29+
cmake -DSET_TWEAK=Off -DBUILD_TESTS=On -DENABLE_EMBEDDED_PCIIDS=On -DENABLE_EMBEDDED_AMDGPUIDS=On .
30+
cmake --build . --target package --verbose -j4
31+
./fastfetch --list-features
32+
time ./fastfetch -c presets/ci.jsonc --stat false
33+
time ./fastfetch -c presets/ci.jsonc --format json
34+
time ./flashfetch
35+
ldd fastfetch
36+
ctest --output-on-failure
37+
38+
- name: upload artifacts
39+
uses: actions/upload-artifact@v7
40+
with:
41+
name: fastfetch-freebsd-amd64
42+
path: ./fastfetch-*.*
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Reusable Haiku amd64
2+
3+
on:
4+
workflow_call:
5+
6+
env:
7+
CMAKE_BUILD_TYPE: ${{ vars.CMAKE_BUILD_TYPE || 'RelWithDebInfo' }}
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: checkout repository
14+
uses: actions/checkout@v6
15+
16+
- name: run VM
17+
uses: cross-platform-actions/action@master
18+
with:
19+
operating_system: haiku
20+
version: 'r1beta5'
21+
architecture: x86-64
22+
cpu_count: 4
23+
shell: bash
24+
environment_variables: 'CMAKE_BUILD_TYPE'
25+
run: |
26+
uname -a
27+
pkgman install -y git dbus_devel mesa_devel libelf_devel imagemagick_devel opencl_headers ocl_icd_devel vulkan_devel zlib_devel chafa_devel cmake gcc make pkgconfig python3.10 || pkgman install -y git dbus_devel mesa_devel libelf_devel imagemagick_devel opencl_headers ocl_icd_devel vulkan_devel zlib_devel chafa_devel cmake gcc make pkgconfig python3.10
28+
cmake -DSET_TWEAK=Off -DBUILD_TESTS=On -DENABLE_EMBEDDED_PCIIDS=On -DENABLE_EMBEDDED_AMDGPUIDS=On .
29+
cmake --build . --target package --verbose -j4
30+
./fastfetch --list-features
31+
time ./fastfetch -c presets/ci.jsonc --stat false
32+
time ./fastfetch -c presets/ci.jsonc --format json
33+
time ./flashfetch
34+
ctest --output-on-failure
35+
36+
- name: upload artifacts
37+
uses: actions/upload-artifact@v7
38+
with:
39+
name: fastfetch-haiku-amd64
40+
path: ./fastfetch-*.*
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Reusable Linux armv6l
2+
3+
on:
4+
workflow_call:
5+
6+
env:
7+
CMAKE_BUILD_TYPE: ${{ vars.CMAKE_BUILD_TYPE || 'RelWithDebInfo' }}
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-24.04
12+
steps:
13+
- name: checkout repository
14+
uses: actions/checkout@v6
15+
16+
- name: run VM
17+
uses: uraimo/run-on-arch-action@v3
18+
id: runcmd
19+
with:
20+
arch: armv6
21+
distro: bookworm
22+
githubToken: ${{ github.token }}
23+
run: |
24+
uname -a
25+
apt-get update && apt-get install -y wget
26+
apt-get install -y cmake make gcc libvulkan-dev libwayland-dev libxrandr-dev libxcb-randr0-dev libdconf-dev libdbus-1-dev libmagickcore-dev libsqlite3-dev librpm-dev libegl-dev libglx-dev ocl-icd-opencl-dev libpulse-dev libdrm-dev libelf-dev rpm
27+
cmake -DSET_TWEAK=Off -DBUILD_TESTS=On -DCMAKE_INSTALL_PREFIX=/usr .
28+
cmake --build . --target package --verbose -j4
29+
./fastfetch --list-features
30+
time ./fastfetch -c presets/ci.jsonc --stat false
31+
time ./fastfetch -c presets/ci.jsonc --format json
32+
time ./flashfetch
33+
ldd fastfetch
34+
ctest --output-on-failure
35+
36+
- name: upload artifacts
37+
uses: actions/upload-artifact@v7
38+
with:
39+
name: fastfetch-linux-armv6l
40+
path: ./fastfetch-*.*
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Reusable Linux armv7l
2+
3+
on:
4+
workflow_call:
5+
6+
env:
7+
CMAKE_BUILD_TYPE: ${{ vars.CMAKE_BUILD_TYPE || 'RelWithDebInfo' }}
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-24.04
12+
steps:
13+
- name: checkout repository
14+
uses: actions/checkout@v6
15+
16+
- name: run VM
17+
uses: uraimo/run-on-arch-action@v3
18+
id: runcmd
19+
with:
20+
arch: armv7
21+
distro: ubuntu22.04
22+
githubToken: ${{ github.token }}
23+
run: |
24+
uname -a
25+
apt-get update && apt-get install -y software-properties-common ca-certificates gpg curl
26+
add-apt-repository -y ppa:ubuntu-toolchain-r/test
27+
curl -L https://apt.kitware.com/keys/kitware-archive-latest.asc | gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
28+
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main' | tee /etc/apt/sources.list.d/kitware.list >/dev/null
29+
echo -e 'Acquire::https::Verify-Peer "false";\nAcquire::https::Verify-Host "false";' >> /etc/apt/apt.conf.d/99ignore-certificates
30+
apt-get update && apt-get install -y cmake make gcc-13 libvulkan-dev libwayland-dev libxrandr-dev libxcb-randr0-dev libdconf-dev libdbus-1-dev libmagickcore-dev libsqlite3-dev librpm-dev libegl-dev libglx-dev ocl-icd-opencl-dev libpulse-dev libdrm-dev libelf-dev rpm
31+
CC=gcc-13 cmake -DSET_TWEAK=Off -DBUILD_TESTS=On -DCMAKE_INSTALL_PREFIX=/usr .
32+
cmake --build . --target package --verbose -j4
33+
./fastfetch --list-features
34+
time ./fastfetch -c presets/ci.jsonc --stat false
35+
time ./fastfetch -c presets/ci.jsonc --format json
36+
time ./flashfetch
37+
ldd fastfetch
38+
ctest --output-on-failure
39+
40+
- name: upload artifacts
41+
uses: actions/upload-artifact@v7
42+
with:
43+
name: fastfetch-linux-armv7l
44+
path: ./fastfetch-*.*

0 commit comments

Comments
 (0)