Skip to content

Commit e10e9cf

Browse files
Add GitHub Actions workflow for build checks
1 parent 1e97a0a commit e10e9cf

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Simple Build Check
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+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Install Dependencies (Ubuntu)
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y build-essential cmake
21+
22+
- name: Configure and Build
23+
run: |
24+
mkdir build
25+
cd build
26+
cmake ..
27+
make
28+
./2D-renderer-cpp

0 commit comments

Comments
 (0)