BOSL2/.github/workflows/testwf.yml

47 lines
1.3 KiB
YAML
Raw Normal View History

2021-05-31 22:11:53 +00:00
name: TestWorkflow
on:
workflow_dispatch:
branches: [master]
jobs:
TestJob:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout Wiki
uses: actions/checkout@v2
with:
repository: revarbat/BOSL2.wiki
path: BOSL2.wiki
- name: Apt Update
run: sudo apt update
- name: Install Packages
run: sudo apt-get install -y python3-pip python3-dev python3-setuptools python3-pil gifsicle
2021-05-31 22:11:53 +00:00
- name: Install openscad-docsgen
run: sudo pip3 install openscad_docsgen
- name: Install OpenSCAD
run: |
cd $GITHUB_WORKSPACE
wget https://files.openscad.org/OpenSCAD-2021.01-x86_64.AppImage
sudo mv OpenSCAD-2021.01*-x86_64.AppImage /usr/local/bin/openscad
sudo chmod +x /usr/local/bin/openscad
2021-05-31 23:59:01 +00:00
echo "::add-matcher::.github/openscad_docsgen.json"
- name: Make SCAD File
run: |
cd $GITHUB_WORKSPACE
echo "cube(50, center=100);" > testwf.scad
2021-05-31 22:11:53 +00:00
- name: TestScript
2021-06-01 00:09:18 +00:00
run: |
2021-06-01 00:34:29 +00:00
export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE)
2021-06-01 00:09:18 +00:00
xvfb-run --server-args="-screen 0, 1280x720x24" -a \
openscad -o tmp_cube.png --imgsize=640,480 --view=axes,scales --projection=o --autocenter --viewall --preview '' --hardwarnings testwf.scad
2021-05-31 22:11:53 +00:00