Skip to content

Commit

Permalink
Updated the build script
Browse files Browse the repository at this point in the history
  • Loading branch information
mryndzionek committed Feb 23, 2022
1 parent b3881b7 commit 4125fb9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,25 @@ jobs:
- name: Prepare
run: |
sudo apt-get update
sudo apt-get install python3 inotify-tools
wget https://github.com/CadQuery/CQ-editor/releases/download/0.2/CQ-editor-Linux-x86_64.zip
unzip CQ-editor-Linux-x86_64.zip
mkdir output
sudo apt-get install python3 libglew2.1
- name: Checkout
uses: actions/checkout@01aecccf739ca6ff86c0539fbc67a7a5007bbc81
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579

- name: Build
run: |
./CQ-editor/CQ-editor ../keyboard.py&
touch keyboard.py
./wait.sh
sleep 5
python3 process.py
- uses: actions/upload-artifact@e448a9b857ee2131e752b06002bf0e093c65e571
set -ex
wget https://github.com/CadQuery/cq-cli/releases/download/v2.2-beta.3/cq-cli-Linux-x86_64.zip
unzip cq-cli-Linux-x86_64.zip
chmod u+x cq-cli/cq-cli
mkdir configs
python3 gen_configs.py
python3 gen_3dfiles.py
python3 gen_pngs.py
rm output/*.svg
set +ex
- uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2
with:
name: output
path: |
Expand Down
2 changes: 1 addition & 1 deletion gen_3dfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def process(fn):
print("Processing config file {}".format(fn))
i_file = os.path.basename(fn)
o_file = os.path.splitext(i_file)[0]
subprocess.run(["./cq-cli", "--codec", "stl", "--infile", "keyboard.py",
subprocess.run(["./cq-cli/cq-cli", "--codec", "stl", "--infile", "keyboard.py",
"--outfile", os.path.join("output", o_file + ".stl"),
"--params", "i:{}".format(fn)])
return o_file
Expand Down

0 comments on commit 4125fb9

Please sign in to comment.