-
Notifications
You must be signed in to change notification settings - Fork 4
67 lines (59 loc) · 2.21 KB
/
printable_files.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Build printable files
on:
push:
paths:
- '**.scad'
- '**.ini'
branches:
- '*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
# printer: [mini, edee, mlab3d]
printer: [mini]
env:
OPENSCAD_BIN: xvfb-run --auto-servernum ~/OpenSCAD.AppImage
SLIC3R_BIN: PrusaSlicer
PRINTER: ${{ matrix.printer }}
steps:
- uses: FranzDiebold/github-env-vars-action@v2
- name: Checkout repository
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUBPAT }}
submodules: recursive
- name: Install requirements
run: |
sudo apt-get update
wget https://github.com/prusa3d/PrusaSlicer/releases/download/version_2.6.0/PrusaSlicer-2.6.0+linux-x64-GTK3-202306191220.AppImage -O ~/prusa-slicer.AppImage
chmod +x ~/prusa-slicer.AppImage
sudo cp ~/prusa-slicer.AppImage /usr/local/bin/PrusaSlicer
wget https://files.openscad.org/OpenSCAD-2021.01-x86_64.AppImage -O ~/OpenSCAD.AppImage
chmod +x ~/OpenSCAD.AppImage
sudo apt-get install libc-bin python3-setuptools xvfb libglu1-mesa libglu1 libegl1
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install stlsort lxml matplotlib thumby
sudo python3 -m pip install git+https://github.com/ThunderFly-aerospace/yagv@a541869d11d3c094f1d7a3ed4d3c0c30489398e9
sudo python3 -m pip install git+https://${{ secrets.AUTH_USER }}:${{ secrets.GITHUBPAT }}@github.com/ThunderFly-aerospace/processor3D.git
- name: Make
run: |
cd CAD/src/printplate; make
- name: Upload a AMF Artifact
uses: actions/[email protected]
with:
name: 'render_amf'
path: './**/*.amf'
- name: 'Anonymize gcode'
run: |
for f in CAD/gcode/*.gcode; do sed -e 's/; .*$//g' -e '/^$/d' -i $f; done
- name: Upload gcodes
uses: MLAB-project/push-generated-file@master
with:
source_file_path: 'CAD/gcode'
destination_folder: 'gcode'
destination_repo: 'ThunderFly-aerospace/gcodes'
target_branch: ${{env.CI_REPOSITORY}}/${{env.CI_REF_NAME}}/${{matrix.printer}}
token: ${{ secrets.GITHUBPAT }}