mirror of
https://github.com/rsheldiii/KeyV2.git
synced 2026-01-14 22:37:56 -05:00
Compare commits
2 Commits
github-act
...
v1.0.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
28680924b4 | ||
|
|
8ad81d3b61 |
36
.github/workflows/test.yml
vendored
36
.github/workflows/test.yml
vendored
@@ -1,36 +0,0 @@
|
||||
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
|
||||
2091
customizer.scad
2091
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) {
|
||||
if ($key_length < 2) {
|
||||
translate([0,0,$stem_support_height / 2]) {
|
||||
cube([total_key_width(), 0.5, $stem_support_height], center = true);
|
||||
cube([total_key_width() -$wall_thickness/2, 0.5, $stem_support_height], center = true);
|
||||
}
|
||||
}
|
||||
|
||||
translate([0,0,$stem_support_height / 2]) {
|
||||
cube([
|
||||
1,
|
||||
total_key_height(),
|
||||
total_key_height() -$wall_thickness/2,
|
||||
$stem_support_height
|
||||
],
|
||||
center = true);
|
||||
|
||||
@@ -4,7 +4,6 @@ include <stems/box_cherry.scad>
|
||||
include <stems/alps.scad>
|
||||
include <stems/filled.scad>
|
||||
include <stems/cherry_stabilizer.scad>
|
||||
include <stems/custom.scad>
|
||||
|
||||
|
||||
//whole stem, alps or cherry, trimmed to fit
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
include <../includes.scad>
|
||||
|
||||
key();
|
||||
BIN
tests/test.stl
BIN
tests/test.stl
Binary file not shown.
Reference in New Issue
Block a user