mirror of
https://github.com/rsheldiii/KeyV2.git
synced 2026-01-14 22:37:56 -05:00
Compare commits
17 Commits
v1.0.1
...
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
|
||||||
2057
customizer.scad
2057
customizer.scad
File diff suppressed because it is too large
Load Diff
@@ -4,14 +4,14 @@ include <../stems/cherry.scad>
|
|||||||
module centered_tines(stem_support_height) {
|
module centered_tines(stem_support_height) {
|
||||||
if ($key_length < 2) {
|
if ($key_length < 2) {
|
||||||
translate([0,0,$stem_support_height / 2]) {
|
translate([0,0,$stem_support_height / 2]) {
|
||||||
cube([total_key_width() -$wall_thickness/2, 0.5, $stem_support_height], center = true);
|
cube([total_key_width(), 0.5, $stem_support_height], center = true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
translate([0,0,$stem_support_height / 2]) {
|
translate([0,0,$stem_support_height / 2]) {
|
||||||
cube([
|
cube([
|
||||||
1,
|
1,
|
||||||
total_key_height() -$wall_thickness/2,
|
total_key_height(),
|
||||||
$stem_support_height
|
$stem_support_height
|
||||||
],
|
],
|
||||||
center = true);
|
center = true);
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ include <stems/box_cherry.scad>
|
|||||||
include <stems/alps.scad>
|
include <stems/alps.scad>
|
||||||
include <stems/filled.scad>
|
include <stems/filled.scad>
|
||||||
include <stems/cherry_stabilizer.scad>
|
include <stems/cherry_stabilizer.scad>
|
||||||
|
include <stems/custom.scad>
|
||||||
|
|
||||||
|
|
||||||
//whole stem, alps or cherry, trimmed to fit
|
//whole stem, alps or cherry, trimmed to fit
|
||||||
|
|||||||
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