Skip to content

Commit d0b03c3

Browse files
committed
CI: build for FreeBSD aarch64 too
1 parent cc40ef4 commit d0b03c3

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ jobs:
288288

289289
freebsd-amd64:
290290
name: FreeBSD-amd64
291-
runs-on: macos-12
291+
runs-on: ubuntu-latest
292292
permissions:
293293
security-events: write
294294
contents: read
@@ -300,6 +300,9 @@ jobs:
300300
uses: cross-platform-actions/action@master
301301
with:
302302
operating_system: freebsd
303+
architecture: x86-64
304+
cpu_count: 3
305+
shell: bash
303306
version: '13.2'
304307
run: |
305308
uname -a
@@ -320,6 +323,43 @@ jobs:
320323
name: fastfetch-freebsd-amd64
321324
path: ./fastfetch-*.*
322325

326+
freebsd-aarch64:
327+
name: FreeBSD-aarch64
328+
runs-on: ubuntu-latest
329+
permissions:
330+
security-events: write
331+
contents: read
332+
steps:
333+
- name: checkout repository
334+
uses: actions/checkout@v4
335+
336+
- name: run VM
337+
uses: cross-platform-actions/action@master
338+
with:
339+
operating_system: freebsd
340+
architecture: arm64
341+
cpu_count: 3
342+
shell: bash
343+
version: '13.2'
344+
run: |
345+
uname -a
346+
sudo pkg update
347+
sudo pkg install -y cmake git pkgconf binutils wayland vulkan-headers vulkan-loader libxcb libXrandr libX11 libdrm glib dconf dbus sqlite3-tcl xfce4-conf ImageMagick6 ImageMagick7 chafa egl libosmesa opencl ocl-icd v4l_compat
348+
cmake -DSET_TWEAK=Off -DBUILD_TESTS=On .
349+
cmake --build . --target package --verbose -j4
350+
./fastfetch --list-features
351+
time ./fastfetch
352+
time ./fastfetch --format json
353+
time ./flashfetch
354+
ldd fastfetch
355+
ctest
356+
357+
- name: upload artifacts
358+
uses: actions/upload-artifact@v4
359+
with:
360+
name: fastfetch-freebsd-aarch64
361+
path: ./fastfetch-*.*
362+
323363
windows-amd64:
324364
name: Windows-amd64
325365
runs-on: windows-latest
@@ -458,6 +498,7 @@ jobs:
458498
- linux-aarch64
459499
- macos-universal
460500
- freebsd-amd64
501+
- freebsd-aarch64
461502
- windows-amd64
462503
- windows-i686
463504
permissions:

0 commit comments

Comments
 (0)