Skip to content

Commit

Permalink
workflow: upload builds
Browse files Browse the repository at this point in the history
also fix release.yml
  • Loading branch information
Toni500github committed Jan 11, 2025
1 parent f2148d9 commit a102902
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 3 deletions.
50 changes: 48 additions & 2 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Makefile CI (Test customfetch NOGUI)
name: Makefile CI (Test customfetch)

on:
push:
Expand Down Expand Up @@ -39,6 +39,12 @@ jobs:
cd /tmp/customfetch-0.10.2.orig
sudo dpkg -i customfetch_0.10.2-1_amd64.deb
customfetch --wrap-lines
- name: Upload to github artifacts
uses: actions/upload-artifact@v4
with:
name: customfetch-deb-pkg
path: /tmp/customfetch-0.10.2.orig/customfetch_amd64.deb

build_ubuntu-latest:

Expand All @@ -54,7 +60,7 @@ jobs:
run: make clean

- name: Compile
run: sudo make install DEBUG=1 VENDOR_TEST=1 GUI_MODE=0
run: sudo make install DEBUG=1 GUI_MODE=0

- name: Test neofetch
run: neofetch
Expand All @@ -71,6 +77,40 @@ jobs:
- name: Test customfetch
run: ./build/debug/customfetch --wrap-lines

- name: Upload to github artifacts
uses: actions/upload-artifact@v4
with:
name: customfetch
path: ./build/debug/customfetch

build_ubuntu-latest_GUI:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Packages
run: sudo apt-get update && sudo apt-get install build-essential gettext cmake neofetch tree libwayland-dev gettext libgtk-3-dev pkg-config libdconf-dev libglib2.0-dev libgtkmm-3.0-dev libarchive-tools -y

- name: Clean
run: make clean

- name: Compile
run: sudo make install DEBUG=1 GUI_MODE=1

- name: Test neofetch
run: neofetch

- name: Test customfetch
run: ./build/debug/customfetch --wrap-lines

- name: Upload to github artifacts
uses: actions/upload-artifact@v4
with:
name: customfetch-gui
path: ./build/debug/customfetch

build_Arch-AUR:

runs-on: ubuntu-latest
Expand Down Expand Up @@ -175,6 +215,12 @@ jobs:
- name: Check files
run: tree android/app/build/outputs/apk

- name: Upload to github artifacts
uses: actions/upload-artifact@v4
with:
name: customfetch-android-app
path: android/app/build/outputs/apk/debug/app-release.apk

test-all-ascii-art:
runs-on: ubuntu-latest

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ jobs:
asset_path: customfetch-gui-deb-pkg/customfetch-gui_amd64.deb
asset_name: customfetch-gui_${{ needs.get-version.outputs.version }}_amd64.deb
asset_content_type: application/vnd.debian.binary-package

- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit a102902

Please sign in to comment.