This page looks best with JavaScript enabled

Turning OpenSCAD Files into STL Meshes with GitHub Actions

 ·   ·  ☕ 2 min read

OpenSCAD is a tool that allows you to program CAD models using its custom programming language rather than dragging and dropping models in an editor. This allows you to define your designs entirely in code that can be compiled into rendered images or 3D models. Let’s explore how we can connect that compilation feature to GitHub actions so we can automatically create new models whenever code is edited in our design.

To do this we’ll be taking advantage of GitHub Actions and using that to open Pull Requests with the updated models as STL files that we can review and merge into our code. We can take advantage of GitHub’s built-in STL viewer in order to preview models directly in any web browser.

Because we are only using features natively included in GitHub we can also use this as a full development loop so we can edit and regenerate models anywhere where we can access GitHub including things like a phone by using tools like!

If you missed the first video introducing OpenSCAD you can watch that here:

Get OpenSCAD:
OpenSCAD’s documentation:
OpenSCAD on GitHub:

You can get a copy of my models and the SCAD files that generate them here:

Join the World of Zero Discord Server:

Sam Wronski
Sam Wronski
Maker of things and professional software engineer. Lets make something awesome together!