Update test.yml

This commit is contained in:
Bob 2021-08-02 17:59:49 -04:00
parent 4d4282313a
commit 3b7ee03c78
1 changed files with 9 additions and 18 deletions

View File

@ -1,33 +1,24 @@
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
push:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# - name: Render and build OpenSCAD project
# uses: flat35hd99/eval-openscad@v0.2
# with:
# command: |
# echo "where does this even go"
# openscad -o "tests/test.stl" "tests/test.scad"
# x11 server needed for png output lol
- name: Install dependencies
run: sudo apt-get install openscad xorg openbox
# x11 server needed for png output lol
- name: Setup xvfb (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get install -y xvfb libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0
# start xvfb in the background
sudo /usr/bin/Xvfb $DISPLAY -screen 0 1280x1024x24 &
- name: Install openscad
run: sudo apt-get install openscad
- run: mkdir tests/output/
- run: touch tests/empty.scad
- run: 'openscad -o "tests/output/test.stl" "tests/test.scad"'