Skip to content

Commit

Permalink
mount: move GitHub workflow to root directory
Browse files Browse the repository at this point in the history
Otherwise, a workaround is required to trigger the build.

Signed-off-by: Leonardo Graboski Veiga <[email protected]>
  • Loading branch information
leograba committed Dec 31, 2023
1 parent 541ecb9 commit cd47937
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 39 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build-3DMount.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: OpenSCAD Build

on:
push:
paths:
- 'TorizonOSBuildStatus3DMount/**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends openscad
mkdir -p $HOME/.local/share/OpenSCAD/libraries
cd $HOME/.local/share/OpenSCAD/libraries
wget https://github.com/BelfrySCAD/BOSL2/archive/refs/heads/master.tar.gz -O BOSL.tar.gz
tar -C $HOME/.local/share/OpenSCAD/libraries -xf BOSL.tar.gz
mv $HOME/.local/share/OpenSCAD/libraries/BOSL2-master $HOME/.local/share/OpenSCAD/libraries/BOSL2
wget https://github.com/nophead/NopSCADlib/archive/refs/heads/master.tar.gz -O NopSCADlib.tar.gz
tar -C $HOME/.local/share/OpenSCAD/libraries -xf NopSCADlib.tar.gz
mv $HOME/.local/share/OpenSCAD/libraries/NopSCADlib-master $HOME/.local/share/OpenSCAD/libraries/NopSCADlib
- name: Build STL files
run: |
# Replace '*.scad' with the actual pattern for your OpenSCAD files
for file in $(find . -name '*.scad'); do
echo "building STL for ${file}"
openscad -o "${file%.scad}.stl" "$file"
done
- name: Upload STL files
uses: actions/upload-artifact@v4
with:
name: stl-files
path: ./TorizonOSBuildStatus3DMount/*.stl
39 changes: 0 additions & 39 deletions TorizonOSBuildStatus3DMount/.github/workflows/build.yml

This file was deleted.

0 comments on commit cd47937

Please sign in to comment.