-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (45 loc) · 1.07 KB
/
build.yml
File metadata and controls
53 lines (45 loc) · 1.07 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build ALG App Store
on:
push:
branches: [ "main", "qt6/c++" ]
pull_request:
branches: [ "main", "qt6/c++" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
cmake \
qt6-base-dev \
qt6-tools-dev \
qt6-tools-dev-tools \
libalpm-dev \
libarchive-dev \
libcurl4-openssl-dev \
pkg-config
- name: Configure CMake
run: |
mkdir -p build
cd build
cmake ..
- name: Build
run: |
cd build
make -j$(nproc)
- name: Check build artifacts
run: |
ls -lh build/alg-app-store
file build/alg-app-store
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: alg-app-store
path: build/alg-app-store
retention-days: 7