Skip to content

Commit 6b867f6

Browse files
committed
Add workflow
1 parent 1abc280 commit 6b867f6

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
container:
13+
image: archlinux/archlinux:latest
14+
15+
steps:
16+
- name: Install dependencies
17+
run: |
18+
pacman -Syu --noconfirm
19+
pacman -S --noconfirm --needed \
20+
git cmake make gcc qt6-base pciutils
21+
22+
- uses: actions/checkout@v4
23+
24+
- name: Build
25+
run: |
26+
cmake -S . -B build \
27+
-DCMAKE_BUILD_TYPE=Release \
28+
--log-level=WARNING
29+
cmake --build build --parallel $(nproc)
30+
31+
- name: Upload artifact
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: arch-gpu-driver-installer
35+
path: build/arch-gpu-driver-installer
36+
if-no-files-found: error

0 commit comments

Comments
 (0)