Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ec1690b49d | ||
|
|
7478e4e010 | ||
|
|
bcb633e774 | ||
|
|
ac6c996602 | ||
|
|
fb0ab4b96b | ||
|
|
7cde3b39fa | ||
|
|
270bf256b7 | ||
|
|
70f0ca1b50 | ||
|
|
6091e5f9dc | ||
|
|
b968dccd28 | ||
|
|
fe644ea6bd | ||
|
|
d18a420449 | ||
|
|
9983149d0e | ||
|
|
e3fde9b71e | ||
|
|
59da0dd7e3 | ||
|
|
1f236737f2 | ||
|
|
4fd4654909 | ||
|
|
4ba6dec508 | ||
|
|
3bea423613 |
@@ -2,20 +2,21 @@ name: Make Packages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
tags: [ "*" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
jobs:
|
||||
build-monocoque:
|
||||
runs-on: ubuntu-latest
|
||||
build-monocoque-debs:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, debian-latest, debian-stable]
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v1
|
||||
- name: Checkout submodules
|
||||
run: git submodule update --init --recursive
|
||||
- name: Update apt
|
||||
@@ -48,9 +49,33 @@ jobs:
|
||||
mkdir -p PKG_SOURCE/usr/bin/
|
||||
cp ./tools/distro/debian/dpkg/control ./PKG_SOURCE/DEBIAN/control
|
||||
cp ./build/monocoque ./PKG_SOURCE/usr/bin/monocoque
|
||||
dpkg-deb --build PKG_SOURCE monocoque.deb
|
||||
dpkg-deb --build PKG_SOURCE monocoque-${{ matrix.os }}.deb
|
||||
|
||||
- name: Release the Package
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: monocoque.deb
|
||||
files: monocoque-${{ matrix.os }}.deb
|
||||
|
||||
|
||||
build-monocoque-rpms:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [fedora-43]
|
||||
runs-on: ${{ matrix.os }}
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
|
||||
- name: create rpmbuild dirs
|
||||
run: mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
|
||||
- name: get spec file
|
||||
run: curl -o ~/fedora.spec https://raw.githubusercontent.com/Spacefreak18/monocoque/refs/heads/master/tools/distro/fedora/rpm/fedora.spec
|
||||
- name: run spec file
|
||||
run: rpmbuild -ba ~/fedora.spec
|
||||
- name: rename file
|
||||
run: cp ~/rpmbuild/RPMS/x86_64/monocoque-0.0.5-1.x86_64.rpm ~/monocoque-${{ matrix.os }}.rpm
|
||||
- name: Release the Package
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: ~/monocoque-${{ matrix.os }}.rpm
|
||||
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
#dnf install pulseaudio-libs-devel argtable-devel libconfig-devel hidapi-devel libserialport-devel lua-devel libuv-devel libxdg-basedir-devel libxml2-devel
|
||||
Summary: A device manager for racing sims
|
||||
Name: monocoque
|
||||
Version: 0.0.5
|
||||
Release: 1
|
||||
License: GPL
|
||||
Group: Applications/Sound
|
||||
Source: https://github.com/monocoque
|
||||
URL: https://spacefreak18.github.io/simapi
|
||||
Distribution: Fedora Linux
|
||||
Vendor: spacefreak18
|
||||
Packager: Paul Jones <paul@spacefreak18.xyz>
|
||||
Requires: pulseaudio-libs argtable libconfig hidapi libserialport libuv libxdg-basedir lua-libs libxml2
|
||||
|
||||
%description
|
||||
A device manager for Racing sims
|
||||
|
||||
%prep
|
||||
rm -rf $RPM_BUILD_DIR/monocoque
|
||||
rm -rf $RPM_SOURCE_DIR/monocoque
|
||||
cd $RPM_SOURCE_DIR
|
||||
git clone https://github.com/spacefreak18/monocoque
|
||||
cd monocoque
|
||||
git submodule update --init --recursive
|
||||
cd ..
|
||||
cp -r $RPM_SOURCE_DIR/monocoque $RPM_BUILD_DIR/
|
||||
|
||||
%build
|
||||
cd $RPM_BUILD_DIR/monocoque
|
||||
cmake -B build
|
||||
cd build
|
||||
make
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/bin
|
||||
cp $RPM_BUILD_DIR/monocoque/build/monocoque $RPM_BUILD_ROOT/usr/bin/monocoque
|
||||
|
||||
%files
|
||||
/usr/bin/monocoque
|
||||
Reference in New Issue
Block a user