mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-16 13:50:23 +01:00
Rework workflows with xvfb.
This commit is contained in:
parent
6d84f05590
commit
7b36b2ad48
17
.github/workflows/docsgen.yml
vendored
17
.github/workflows/docsgen.yml
vendored
@ -34,13 +34,18 @@ jobs:
|
|||||||
sudo mv OpenSCAD-2021.01*-x86_64.AppImage /usr/local/bin/openscad
|
sudo mv OpenSCAD-2021.01*-x86_64.AppImage /usr/local/bin/openscad
|
||||||
sudo chmod +x /usr/local/bin/openscad
|
sudo chmod +x /usr/local/bin/openscad
|
||||||
|
|
||||||
- name: Generating Docs
|
- name: Generating Docs Headless
|
||||||
|
uses: GabrielBB/xvfb-action@v1
|
||||||
|
with:
|
||||||
|
working-directory: $GITHUB_WORKSPACE
|
||||||
|
run: |
|
||||||
|
export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE)
|
||||||
|
echo "::add-matcher::.github/openscad_docsgen.json"
|
||||||
|
openscad-docsgen -ticmI *.scad
|
||||||
|
|
||||||
|
- name: Commit Wiki Docs
|
||||||
run: |
|
run: |
|
||||||
cd $GITHUB_WORKSPACE
|
cd $GITHUB_WORKSPACE/BOSL2.wiki
|
||||||
export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE)
|
|
||||||
echo "::add-matcher::.github/openscad_docsgen.json"
|
|
||||||
openscad-docsgen -ticmI *.scad
|
|
||||||
cd BOSL2.wiki
|
|
||||||
git config user.name github-actions
|
git config user.name github-actions
|
||||||
git config user.email github-actions@github.com
|
git config user.email github-actions@github.com
|
||||||
git add --all
|
git add --all
|
||||||
|
17
.github/workflows/forced_docsgen.yml
vendored
17
.github/workflows/forced_docsgen.yml
vendored
@ -32,13 +32,18 @@ jobs:
|
|||||||
sudo mv OpenSCAD-2021.01*-x86_64.AppImage /usr/local/bin/openscad
|
sudo mv OpenSCAD-2021.01*-x86_64.AppImage /usr/local/bin/openscad
|
||||||
sudo chmod +x /usr/local/bin/openscad
|
sudo chmod +x /usr/local/bin/openscad
|
||||||
|
|
||||||
- name: Generating Docs
|
- name: Generating Docs Headless
|
||||||
|
uses: GabrielBB/xvfb-action@v1
|
||||||
|
with:
|
||||||
|
working-directory: $GITHUB_WORKSPACE
|
||||||
|
run: |
|
||||||
|
export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE)
|
||||||
|
echo "::add-matcher::.github/openscad_docsgen.json"
|
||||||
|
openscad-docsgen -ticmIf *.scad
|
||||||
|
|
||||||
|
- name: Commit Wiki Docs
|
||||||
run: |
|
run: |
|
||||||
cd $GITHUB_WORKSPACE
|
cd $GITHUB_WORKSPACE/BOSL2.wiki
|
||||||
export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE)
|
|
||||||
echo "::add-matcher::.github/openscad_docsgen.json"
|
|
||||||
openscad-docsgen -ticmIf *.scad
|
|
||||||
cd BOSL2.wiki
|
|
||||||
git config user.name github-actions
|
git config user.name github-actions
|
||||||
git config user.email github-actions@github.com
|
git config user.email github-actions@github.com
|
||||||
git add --all
|
git add --all
|
||||||
|
15
.github/workflows/testwf.yml
vendored
15
.github/workflows/testwf.yml
vendored
@ -33,10 +33,13 @@ jobs:
|
|||||||
sudo chmod +x /usr/local/bin/openscad
|
sudo chmod +x /usr/local/bin/openscad
|
||||||
|
|
||||||
- name: TestScript
|
- name: TestScript
|
||||||
run: |
|
uses: GabrielBB/xvfb-action@v1
|
||||||
cd $GITHUB_WORKSPACE
|
with:
|
||||||
export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE)
|
working-directory: $GITHUB_WORKSPACE
|
||||||
echo "::add-matcher::.github/openscad_docsgen.json"
|
run: |
|
||||||
echo "cube(50, center=100);" > testwf.scad
|
cd $GITHUB_WORKSPACE
|
||||||
openscad -o tmp_cube.png --imgsize=640,480 --view=axes,scales --projection=o --autocenter --viewall --preview '' --hardwarnings testwf.scad
|
export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE)
|
||||||
|
echo "::add-matcher::.github/openscad_docsgen.json"
|
||||||
|
echo "cube(50, center=100);" > testwf.scad
|
||||||
|
openscad -o tmp_cube.png --imgsize=640,480 --view=axes,scales --projection=o --autocenter --viewall --preview '' --hardwarnings testwf.scad
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user