Skip to content

Update makefile.yml #128

Update makefile.yml

Update makefile.yml #128

Workflow file for this run

name: Makefile CI (Test customfetch)
on:
push:
branches: [ "main", "test" ]
pull_request:
branches: [ "main", "test" ]
jobs:
build_ubuntu-latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Packages
run: sudo apt-get update && sudo apt-get install build-essential cmake neofetch tree libgtk-3-dev pkg-config libpci-dev libgtkmm-3.0-dev -y
- name: Clean
run: make clean
- name: Compile
run: sudo make install DEBUG=0 VENDOR_TEST=1 GUI_SUPPORT=1
- name: Test neofetch
run: neofetch
# - name: Check system values
# run: |
# ls -l /sys/devices/virtual/dmi/id/ /sys/class/dmi/id/
# grep -Eri "virtual" /sys/class/dmi/id/ || true
# cat /sys/devices/virtual/dmi/id/board_name /sys/devices/virtual/dmi/id/board_vendor /sys/devices/virtual/dmi/id/board_version
# tree /sys/devices/system/cpu/cpu0/
- name: Test customfetch
run: ./build/release/cufetch
build_arch-AUR:
runs-on: ubuntu-latest
container:
image: archlinux
steps:
- uses: actions/checkout@v4
- name: Install packages
run: pacman -Syyu git sudo base-devel fakeroot pkgconf neofetch fastfetch --noconfirm --needed
- name: get /etc/sudoers
run: |
sed -i "s#root ALL=(ALL:ALL) ALL#root ALL=(ALL:ALL) NOPASSWD: ALL\nnobody ALL=(ALL:ALL) NOPASSWD: ALL#g" /etc/sudoers
cat /etc/sudoers
- name: get /etc/makepkg.conf
run: |
sed -i "s#purge debug lto#purge !debug lto#" /etc/makepkg.conf
cat /etc/makepkg.conf
- name: Build and install using makepkg
run: |
git clone https://aur.archlinux.org/customfetch-git.git
chown -R nobody customfetch-git
cd customfetch-git
sudo -u nobody makepkg -si --noconfirm
- name: Test fastfetch
run: flashfetch
- name: Test customfetch
run: cufetch
build_AUR-freshfetch:
runs-on: ubuntu-latest
container:
image: archlinux
steps:
- uses: actions/checkout@v4
- name: Install packages
run: pacman -Syyu git sudo base-devel fakeroot pkgconf neofetch fastfetch wget curl --noconfirm --needed
- name: get /etc/sudoers
run: |
sed -i "s#root ALL=(ALL:ALL) ALL#root ALL=(ALL:ALL) NOPASSWD: ALL\nnobody ALL=(ALL:ALL) NOPASSWD: ALL#g" /etc/sudoers
cat /etc/sudoers
- name: get /etc/makepkg.conf
run: |
sed -i "s#purge debug lto#purge !debug lto#" /etc/makepkg.conf
cat /etc/makepkg.conf
- name: Build and install using makepkg freshfetch
run: |
git clone https://aur.archlinux.org/freshfetch-bin.git
chown -R nobody freshfetch-bin
cd freshfetch-bin
sudo -u nobody makepkg -s --noconfirm
wget https://github.com/K4rakara/freshfetch/releases/download/v0.2.0/freshfetch.tar.gz
tar -xzf freshfetch.tar.gz
cp ./usr/bin/freshfetch /bin && chmod 755 /usr/bin/freshfetch
- name: Build and install using makepkg customfetch
run: |
git clone https://aur.archlinux.org/customfetch-git.git
chown -R nobody customfetch-git
cd customfetch-git
sudo -u nobody makepkg -si --noconfirm
- name: Test freshfetch
run: |
export SHELL=/bin/bash
sudo -u nobody freshfetch || echo "LMAOOO panicked" && true
- name: Test customfetch
run: |
cufetch || echo "wghasa6s?????" && true