forked from elalish/manifold
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: OpenSCAD CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-22.04 | ||
if: github.event.pull_request.draft == false | ||
- run: git config --global submodule.fetchJobs 8 | ||
- name: clone openscad | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: pca006132/openscad | ||
submodules: recursive | ||
- name: setup | ||
run: | | ||
./scripts/github-ci-linux-get-dependencies.sh kinetic | ||
sudo apt-get install gettext ninja clang libtbb-dev | ||
rm -rf submodules/manifold | ||
git clone https://gist.github.com/dd4e50d46610daa3f6502c6ee75b8cb4.git $GITHUB_WORKSPACE/openscad-test | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
path: submodules/manifold | ||
- name: build | ||
run: | | ||
mkdir build && cd build | ||
# clang seems to be faster and uses less memory | ||
cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DUSE_BUILTIN_OPENCSG=ON -DEXPERIMENTAL=ON -DMANIFOLD_DEBUG=ON -DCMAKE_UNITY_BUILD=ON -GNinja .. | ||
ninja | ||
- name: test | ||
run: | | ||
cd $GITHUB_WORKSPACE/openscad-test | ||
OPENSCAD=../build/openscad ./test *.scad | ||