From 92bfa8fe2d97dbc93b9b700ecf1da6e01772fe31 Mon Sep 17 00:00:00 2001 From: QuentiumYT Date: Wed, 6 Sep 2023 17:29:39 +0200 Subject: [PATCH] GitHub action build app --- .github/workflows/build.yml | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c1ecd1e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,39 @@ +name: Build Nvtop Application + +on: + workflow_dispatch: + push: + tags: + - "*" + +env: + SOURCE_DIR: ${{ github.workspace }} + +jobs: + build: + name: Build App + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + lfs: true + - name: Install libraries + run: | + sudo apt-get install libdrm-dev libsystemd-dev libudev-dev + sudo apt-get install libfuse2 + - name: Install build tools + run: | + sudo apt-get install -y dh-make + sudo apt-get install -y devscripts build-essential lintian + - name: Build + run: | + bash ${{ env.SOURCE_DIR }}/release.sh deb + - name: Upload workflow artifacts + uses: actions/upload-artifact@v3 + with: + name: nvtop + path: | + ${{ env.SOURCE_DIR }}/release/nvtop_*.deb + ${{ env.SOURCE_DIR }}/release/nvtop-*.AppImage