mirror of
https://github.com/rsheldiii/KeyV2.git
synced 2026-01-14 14:27:55 -05:00
Compare commits
17 Commits
dependabot
...
github-act
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3b7ee03c78 | ||
|
|
4d4282313a | ||
|
|
ff0352c299 | ||
|
|
7686e1d589 | ||
|
|
4c8b460823 | ||
|
|
10352f6979 | ||
|
|
b36bceaa65 | ||
|
|
7dbc466682 | ||
|
|
aa2087cd96 | ||
|
|
22b7e29da5 | ||
|
|
df4686974e | ||
|
|
45eaab2b1c | ||
|
|
f579143f9b | ||
|
|
b675a8f66f | ||
|
|
d288e53e77 | ||
|
|
67991c238e | ||
|
|
269fa2361c |
36
.github/workflows/test.yml
vendored
Normal file
36
.github/workflows/test.yml
vendored
Normal 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
0
tests/empty.scad
Normal file
3
tests/test.scad
Normal file
3
tests/test.scad
Normal file
@@ -0,0 +1,3 @@
|
||||
include <../includes.scad>
|
||||
|
||||
key();
|
||||
BIN
tests/test.stl
Normal file
BIN
tests/test.stl
Normal file
Binary file not shown.
Reference in New Issue
Block a user