mirror of
https://github.com/rsheldiii/KeyV2.git
synced 2025-01-22 09:27:46 +00:00
Update test.yml
This commit is contained in:
parent
4d4282313a
commit
3b7ee03c78
1 changed files with 9 additions and 18 deletions
27
.github/workflows/test.yml
vendored
27
.github/workflows/test.yml
vendored
|
@ -1,33 +1,24 @@
|
||||||
# This is a basic workflow to help you get started with Actions
|
|
||||||
|
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
# Controls when the workflow will run
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
||||||
jobs:
|
jobs:
|
||||||
# This workflow contains a single job called "build"
|
|
||||||
build:
|
build:
|
||||||
# The type of runner that the job will run on
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
# - name: Render and build OpenSCAD project
|
# x11 server needed for png output lol
|
||||||
# uses: flat35hd99/eval-openscad@v0.2
|
- name: Setup xvfb (Linux)
|
||||||
# with:
|
if: runner.os == 'Linux'
|
||||||
# command: |
|
run: |
|
||||||
# echo "where does this even go"
|
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
|
||||||
# openscad -o "tests/test.stl" "tests/test.scad"
|
# start xvfb in the background
|
||||||
# x11 server needed for png output lol
|
sudo /usr/bin/Xvfb $DISPLAY -screen 0 1280x1024x24 &
|
||||||
- name: Install dependencies
|
- name: Install openscad
|
||||||
run: sudo apt-get install openscad xorg openbox
|
run: sudo apt-get install openscad
|
||||||
- run: mkdir tests/output/
|
- run: mkdir tests/output/
|
||||||
- run: touch tests/empty.scad
|
- run: touch tests/empty.scad
|
||||||
- run: 'openscad -o "tests/output/test.stl" "tests/test.scad"'
|
- run: 'openscad -o "tests/output/test.stl" "tests/test.scad"'
|
||||||
|
|
Loading…
Reference in a new issue