Skip to content

Update makefile.yml #97

Update makefile.yml

Update makefile.yml #97

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 git
run: pacman -Syyu git sudo base-devel fakeroot pkgconf --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 neofetch
run: neofetch
- name: Test customfetch
run: cufetch