Skip to content

Commit bdd87a6

Browse files
committed
CI: try adding netbsd
1 parent 4665fdd commit bdd87a6

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,42 @@ jobs:
433433
name: fastfetch-openbsd-amd64
434434
path: ./fastfetch-*.*
435435

436+
netbsd-amd64:
437+
name: NetBSD-amd64
438+
runs-on: ubuntu-latest
439+
permissions:
440+
security-events: write
441+
contents: read
442+
steps:
443+
- name: checkout repository
444+
uses: actions/checkout@v4
445+
446+
- name: run VM
447+
uses: cross-platform-actions/action@master
448+
with:
449+
operating_system: netbsd
450+
architecture: x86-64
451+
cpu_count: 4
452+
shell: bash
453+
version: '10.0'
454+
run: |
455+
uname -a
456+
sudo pkgin -y install cmake git pkgconf
457+
cmake -DSET_TWEAK=Off -DBUILD_TESTS=On .
458+
cmake --build . --target package --verbose -j4
459+
./fastfetch --list-features
460+
time ./fastfetch -c presets/ci.jsonc --stat false
461+
time ./fastfetch -c presets/ci.jsonc --format json
462+
time ./flashfetch
463+
ldd fastfetch
464+
ctest
465+
466+
- name: upload artifacts
467+
uses: actions/upload-artifact@v4
468+
with:
469+
name: fastfetch-openbsd-amd64
470+
path: ./fastfetch-*.*
471+
436472
windows-amd64:
437473
name: Windows-amd64
438474
runs-on: windows-latest

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,6 +1417,10 @@ elseif(OpenBSD)
14171417
PRIVATE "m"
14181418
PRIVATE "kvm"
14191419
)
1420+
elseif(NetBSD)
1421+
target_link_libraries(libfastfetch
1422+
PRIVATE "m"
1423+
)
14201424
elseif(SunOS)
14211425
target_link_libraries(libfastfetch
14221426
PRIVATE "m"

0 commit comments

Comments
 (0)