Skip to content

Commit 8cb821d

Browse files
committed
add ci for building project
1 parent d6662ad commit 8cb821d

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build project
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
ci-windows:
13+
runs-on: windows-latest
14+
15+
steps:
16+
- name: Checkout Project
17+
uses: actions/[email protected]
18+
19+
- name: Setup MSBuild
20+
uses: microsoft/setup-msbuild@v2
21+
22+
- name: Configure CMake
23+
uses: threeal/[email protected]
24+
with:
25+
source-dir: .
26+
build-dir: .
27+
options: |
28+
CMAKE_BUILD_TYPE=Release
29+
30+
- name: Build Solution with MSBuild
31+
run: |
32+
msbuild Model-Modifier.sln /p:Configuration=Release /p:Platform=x64
33+
shell: cmd

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
![Sample smoothed star rendering](Model-Modifier/gallery/Screenshot_2024-4-25_202228-2.png)
44

55
[![GitHub license](https://img.shields.io/github/license/Naereen/StrapDown.js.svg)](https://github.com/jasonlmfong/Model-Modifier/blob/main/LICENSE)
6+
[![Build Status](https://github.com/jasonlmfong/Model-Modifier/actions/workflows/ci.yml/badge.svg)](https://github.com/jasonlmfong/Model-Modifier/actions/workflows/ci.yml)
67

7-
This repository contains my `C++17` and `OpenGL` implementation of a mesh viewer for `.obj` files, with various algorithms for interacting with the meshes, and various shading techniques.
8+
Model-Modifier is my `C++17` and `OpenGL` implementation of an interactive mesh renderer/viewer for `.obj` files, with various algorithms to apply to the meshes, and various shading techniques.
89

910
## Features
1011

@@ -142,3 +143,11 @@ Here I try to list all sources wherever possible.
142143
| Suzanne | [Blender](https://www.blender.org/) |
143144
| Teapot | [Martin Newell](https://users.cs.utah.edu/~dejohnso/models/teapot.html) |
144145
| Teddy | Unknown |
146+
147+
## Build
148+
149+
Create the solution file by running:
150+
151+
`cmake .`
152+
153+
open the solution file however you like.

0 commit comments

Comments
 (0)