ci/cd: enable centos 8 build

This commit is contained in:
Alex Diaz 2021-10-19 22:48:35 -04:00
parent fff4daea8f
commit bd536b8ae6
No known key found for this signature in database
GPG key ID: 5F95650F793D0948
2 changed files with 15 additions and 2 deletions

View file

@ -18,3 +18,16 @@ jobs:
- name: build mouse_m908 rpm package
run: |
make -j4 rpm
centos-rpm-build:
runs-on: ubuntu-latest
container: centos:8
steps:
- uses: actions/checkout@v2
- name: install tools and dependencies
run: |
dnf install -y rpm-build findutils clang-tools-extra 'dnf-command(builddep)' 'dnf-command(config-manager)'
dnf config-manager --set-enabled powertools
dnf builddep -y mouse_m908.spec
- name: build mouse_m908 rpm package
run: |
make -j4 rpm

View file

@ -7,12 +7,12 @@
Name: mouse_m908
Version: 3.2
Release: 1
Release: 1%{?dist}
Summary: Control Redragon gaming mice from Linux, BSD and Haiku
License: GPL v3
URL: https://github.com/dokutan/mouse_m908
BuildRequires: gcc-c++ libusb libusb-devel
BuildRequires: gcc-c++ libusb libusb-devel make
Requires: libusb
ExclusiveArch: x86_64