forked from Syllo/nvtop
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (29 loc) · 830 Bytes
/
compile.yml
File metadata and controls
40 lines (29 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Compile Ubuntu
on:
- push
- pull_request
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, ubuntu-24.04, ubuntu-22.04]
env:
BUILD_DIR: build
DEBIAN_FRONTEND: noninteractive
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install -y libncurses5-dev libncursesw5-dev libdrm-dev libsystemd-dev
- name: Configure CMake
run: cmake -S . -B $BUILD_DIR
- name: Build
run: cmake --build $BUILD_DIR
- name: Install
run: DESTDIR="$PWD/build/install" cmake --build $BUILD_DIR --target install
- name: Upload
uses: actions/upload-artifact@v4
with:
name: nvtop ${{ matrix.os }}
path: ${{ env.BUILD_DIR }}/install