Skip to content

Commit

Permalink
Add Github Actions CI (#23)
Browse files Browse the repository at this point in the history
* Initial Commit

Might need CMake

* Try Installing OpenGL

* Add more dependencies

* Try adjusting directories

* Upload Binary

* Run Tests
  • Loading branch information
zalo committed May 17, 2024
1 parent 20b4770 commit cd23026
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build OptCuts

on:
push

jobs:
build:
name: Build OptCuts - Linux
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
lfs: true
submodules: recursive

- name: Update packages
run: sudo apt-get update
- name: Install packages
run: sudo apt-get install --fix-missing libgl1-mesa-dev xorg-dev libglu1-mesa-dev

- name: Run CMake
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
- name: Build
run: |
cd build
make -j 12
# Upload the build results - Retained for 90 days by default
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: Build Products
path: build/OptCuts_bin

- name: Run Tests
run: python batch.py

0 comments on commit cd23026

Please sign in to comment.