# This is a basic workflow to help you get started with Actions name: CI # Controls when the workflow will run on: push: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" build: # The type of runner that the job will run on runs-on: ubuntu-latest # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 # - name: Render and build OpenSCAD project # uses: flat35hd99/eval-openscad@v0.2 # with: # command: | # echo "where does this even go" # openscad -o "tests/test.stl" "tests/test.scad" - name: Install openscad run: sudo apt-get install openscad - run: echo "rendering new fixtures..." - run: mkdir tests/output/ - run: touch tests/empty.scad - run: 'openscad -o "tests/output/test.stl" "tests/test.scad"' - run: echo "differencing new fixtures from old fixtures..." - 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