This repository was archived by the owner on Oct 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ # This piece of code was made by ChatGPT because I don't care enough to learn this
2+
3+ name : Build project
4+
5+ on :
6+ push :
7+ branches : [main]
8+ pull_request :
9+
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : 📥 Checkout repository
16+ uses : actions/checkout@v4
17+
18+ - name : Get Qt framework
19+ uses : jurplel/install-qt-action@v4
20+ with :
21+ version : 6.9.1
22+
23+ - name : ⚙️ Set up dependencies
24+ run : |
25+ sudo apt-get update
26+ sudo apt-get install -y cmake ninja-build clang g++
27+ sudo apt-get install -y mesa-utils libglu1-mesa-dev freeglut3-dev mesa-common-dev
28+ sudo apt-get install -y libglew-dev libglfw3-dev libglm-dev
29+
30+ - name : Cache build directory
31+ uses : actions/cache@v4
32+ with :
33+ path : build/
34+ key : ${{ runner.os }}-build-${{ hashFiles('**/CMakeLists.txt', '**/*.cpp') }}
35+ restore-keys : |
36+ ${{ runner.os }}-build-
37+
38+ - name : 🏗️ Configure and build
39+ run : |
40+ mkdir -p build
41+ cd build
42+ cmake ..
43+ cmake --build . -j$(nproc)
44+
45+ - name : 📦 Upload executable
46+ uses : actions/upload-artifact@v4
47+ with :
48+ name : libQtQuickOpenGLWidget.a
49+ path : |
50+ build/libQtQuickOpenGLWidget.a
51+ if-no-files-found : error
You can’t perform that action at this time.
0 commit comments