From 3b7ee03c787ad2f837cc2e23015cc4637085e4f1 Mon Sep 17 00:00:00 2001 From: Bob Date: Mon, 2 Aug 2021 17:59:49 -0400 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4eaf815..6cb588f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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"'