mirror of
https://github.com/EnumeratedDev/stormfetch.git
synced 2026-09-21 18:26:11 +00:00
Compare commits
6
Commits
f04a4b000a
...
5ba86fdf1b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ba86fdf1b
|
||
|
|
26af051000
|
||
|
|
b77dd0f621
|
||
|
|
47fb9b0e64
|
||
|
|
c712f1528a
|
||
|
|
33b346785b
|
@@ -0,0 +1,61 @@
|
||||
name: CI/CD pipeline
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "**"
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Fetch repository
|
||||
uses: actions/checkout@v6
|
||||
- name: Upgrade packages
|
||||
run: sudo apt update -y && sudo apt upgrade -y
|
||||
- name: Download and install dependencies
|
||||
run: sudo apt install -y make golang libgl-dev libx11-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libxxf86vm-dev
|
||||
- name: Build using make
|
||||
run: make PREFIX=/usr SYSCONFDIR=/etc
|
||||
- name: Install to root using make
|
||||
run: sudo make PREFIX=/usr SYSCONFDIR=/etc install
|
||||
- name: Run stormfetch
|
||||
run: stormfetch
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') && needs.test.result == 'success'
|
||||
steps:
|
||||
- name: Fetch repository
|
||||
uses: actions/checkout@v6
|
||||
- name: Check debian changelog version
|
||||
run: test $(grep '^stormfetch' debian/changelog | head -n1 | grep -Po '(?<=\().*(?=\))' | cut -d '-' -f1) == ${{ github.ref_name }}
|
||||
- name: Upgrade packages
|
||||
run: sudo apt update -y && sudo apt upgrade -y
|
||||
- name: Download and install dependencies
|
||||
run: sudo apt install -y make debhelper golang libgl-dev libx11-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libxxf86vm-dev
|
||||
- name: Build deb package
|
||||
run: dpkg-buildpackage -b
|
||||
- name: Read changelog
|
||||
id: read_changelog
|
||||
run: |
|
||||
r=$(cat CHANGELOG.md) # Read CHANGELOG.md
|
||||
r="${r//'%'/'%25'}" # Multiline escape sequences for %
|
||||
r="${r//$'\n'/'%0A'}" # Multiline escape sequences for '\n'
|
||||
r="${r//$'\r'/'%0D'}" # Multiline escape sequences for '\r'
|
||||
echo "RELEASE_BODY=$r" >> $GITHUB_OUTPUT # Set environment variable
|
||||
- name: Upload deb packages release
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
release_name: v${{ github.ref_name }}
|
||||
file: ../*.deb
|
||||
tag: ${{ github.ref }}
|
||||
overwrite: true
|
||||
file_glob: true
|
||||
draft: true
|
||||
body: |
|
||||
${{ steps.read_changelog.outputs.RELEASE_BODY }}
|
||||
@@ -5,3 +5,6 @@
|
||||
/build
|
||||
/deb/temp
|
||||
/deb/out
|
||||
|
||||
# Ignore act files
|
||||
event.json
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# Stormfetch v8.0 Changelog
|
||||
### Changes:
|
||||
- [Add CI/CD pipeline](https://github.com/EnumeratedDev/stormfetch/commit/c712f1528af45fcd7859b28b084c3dce64d6e07c)
|
||||
- [Add debian package source](https://github.com/EnumeratedDev/stormfetch/commit/f04a4b000a419181dd5eb940440676260beaae5f)
|
||||
- [Separate monitor detection code into different program](https://github.com/EnumeratedDev/stormfetch/commit/da463b35e36eb4413d6ffc258f12398015fedb2b)
|
||||
### Fixes
|
||||
- [Return unknown GPU if device info is nil](https://github.com/EnumeratedDev/stormfetch/commit/8dfe7b3a0e0c1f95d34020b1f3fda5142f113671)
|
||||
- [Fix bash version checking](https://github.com/EnumeratedDev/stormfetch/commit/8147d302c8a8d170c6942378b4b74eac77d755ac)
|
||||
- [Fix multiple spaces when version number is empty](https://github.com/EnumeratedDev/stormfetch/commit/a919ffb71b78d706062030203029ef470b190e9c)
|
||||
Vendored
+8
@@ -1,3 +1,11 @@
|
||||
stormfetch (7.4-1) trixie; urgency=medium
|
||||
|
||||
* Fix version number
|
||||
* Update debian codename
|
||||
* Fix debhelper dependency
|
||||
|
||||
-- EnumDev <[email protected]> Sat, 18 Apr 2026 14:18:37 +0300
|
||||
|
||||
stormfetch (7.4.3-1) stretch; urgency=medium
|
||||
|
||||
* Initial packaging work with dpkg-buildpackage.
|
||||
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
9
|
||||
Vendored
+1
-1
@@ -2,7 +2,7 @@ Source: stormfetch
|
||||
Priority: optional
|
||||
Maintainer: EnumDev <[email protected]>
|
||||
Build-Depends:
|
||||
debhelper-compat (= 13),
|
||||
debhelper (>= 9),
|
||||
libgl-dev,
|
||||
libx11-dev,
|
||||
libxcursor-dev,
|
||||
|
||||
Reference in New Issue
Block a user