Compare commits

...

17 Commits

Author SHA1 Message Date
Bob 3b7ee03c78 Update test.yml 2021-08-02 17:59:49 -04:00
Bob 4d4282313a Update test.yml 2021-08-02 17:56:28 -04:00
Bob ff0352c299 } 2021-08-02 17:52:18 -04:00
Bob 7686e1d589 Update test.yml 2021-08-02 17:48:51 -04:00
Bob 4c8b460823 Update test.stl 2021-08-02 17:41:38 -04:00
Bob 10352f6979 Update test.yml 2021-08-02 17:36:58 -04:00
Bob b36bceaa65 Merge branch 'github-actions' of https://github.com/rsheldiii/KeyV2 into github-actions 2021-08-02 17:34:19 -04:00
Bob 7dbc466682 more advanced 2021-08-02 17:34:11 -04:00
KeyV2 GHA Bot aa2087cd96 Update test stls 2021-08-02 21:20:40 +00:00
Bob 22b7e29da5 Update test.yml 2021-08-02 17:19:57 -04:00
Bob df4686974e git add -A 2021-08-02 17:13:58 -04:00
Bob 45eaab2b1c Create test.stl 2021-08-02 17:01:55 -04:00
Bob f579143f9b Update test.yml 2021-08-02 16:55:14 -04:00
Bob b675a8f66f Update test.yml 2021-08-02 16:31:46 -04:00
Bob d288e53e77 Update test.yml 2021-08-02 16:26:51 -04:00
Bob 67991c238e Update test.yml 2021-08-02 16:08:38 -04:00
Bob 269fa2361c test github actions workflow 2021-08-02 16:05:19 -04:00
4 changed files with 39 additions and 0 deletions

36
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,36 @@
name: CI
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# 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"'
- run: openscad tests/empty.scad -D 'color(0.5,0,0,0.5)import("test.stl");color(0,0.5,0,0.5)import("output/test.stl");' -o output.png
# - run: du -B 1 output.stl
- uses: actions/upload-artifact@v2
with:
name: test-output
path: output.png
# - run: |
# git config --global user.name 'KeyV2 GHA Bot'
# git config --global user.email 'keyv2-gha-bot@users.noreply.github.com'
# git add -A
# git commit -m "Update test stls"
# git push

0
tests/empty.scad Normal file
View File

3
tests/test.scad Normal file
View File

@ -0,0 +1,3 @@
include <../includes.scad>
key();

BIN
tests/test.stl Normal file

Binary file not shown.