https://github.com/irev-dev/action-install-openscad-nightly
Installs the OpenSCAD cli for use in workflows
https://github.com/irev-dev/action-install-openscad-nightly
Last synced: 6 months ago
JSON representation
Installs the OpenSCAD cli for use in workflows
- Host: GitHub
- URL: https://github.com/irev-dev/action-install-openscad-nightly
- Owner: Irev-Dev
- License: mit
- Created: 2022-06-12T22:49:45.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-12T23:06:57.000Z (about 4 years ago)
- Last Synced: 2026-01-24T04:57:57.369Z (6 months ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Install OpenSCAD nightly
Action that installs OpenSCAD nighly, and other things (like xvfb) needed to use OpenSCAD in github workflows
Example would be to produce stl artifacts from a `.scad` script i.e.
```yml
name: Create STL and publish release
on:
push:
tags:
- '*'
jobs:
create-n-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Irev-Dev/action-install-openscad-nightly@v0.0.1
- name: create stl
run: xvfb-run --auto-servernum --server-args "-screen 0 1024x768x24" openscad-nightly -o ./output.stl -P default ./demo.scad
- uses: ncipollo/release-action@v1
with:
artifacts: output.stl
token: ${{ secrets.GITHUB_TOKEN }}
```
note `xvfb-run` is necessary.