Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

Commit 4358aac

Browse files
authored
ci: build an executable on every push to main
1 parent d3ea126 commit 4358aac

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
with:
18+
submodules: recursive # Gets submodules
19+
20+
- name: ⚙️ Set up dependencies
21+
run: |
22+
sudo apt-get update
23+
sudo apt-get install -y cmake ninja-build g++
24+
sudo apt-get install -y mesa-utils libglu1-mesa-dev freeglut3-dev mesa-common-dev
25+
sudo apt-get install -y libglew-dev libglfw3-dev libglm-dev
26+
27+
- name: 🏗️ Configure and build
28+
run: |
29+
mkdir -p build
30+
cd build
31+
cmake ..
32+
cmake --build . -j$(nproc)
33+
34+
- name: 📦 Upload executable
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: RenderingLab
38+
path: |
39+
build/*
40+
if-no-files-found: error

0 commit comments

Comments
 (0)