Skip to content

Commit a783730

Browse files
committed
add CI
1 parent 22ae227 commit a783730

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/build.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Build ALG App Store
2+
3+
on:
4+
push:
5+
branches: [ "main", "qt6/c++" ]
6+
pull_request:
7+
branches: [ "main", "qt6/c++" ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Install dependencies
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y \
22+
build-essential \
23+
cmake \
24+
qt6-base-dev \
25+
qt6-tools-dev \
26+
qt6-tools-dev-tools \
27+
libalpm-dev \
28+
libarchive-dev \
29+
libcurl4-openssl-dev \
30+
pkg-config
31+
32+
- name: Configure CMake
33+
run: |
34+
mkdir -p build
35+
cd build
36+
cmake ..
37+
38+
- name: Build
39+
run: |
40+
cd build
41+
make -j$(nproc)
42+
43+
- name: Check build artifacts
44+
run: |
45+
ls -lh build/alg-app-store
46+
file build/alg-app-store
47+
48+
- name: Upload build artifact
49+
uses: actions/upload-artifact@v4
50+
with:
51+
name: alg-app-store
52+
path: build/alg-app-store
53+
retention-days: 7

0 commit comments

Comments
 (0)