-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
28 lines (28 loc) · 1021 Bytes
/
action.yaml
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
name: setup-openscad-cli-action
description: GitHub Action to build and install the OpenSCAD CLI.
branding:
icon: terminal
color: white
runs:
using: composite
steps:
- id: prepare
run: bash ./prepare.sh
env:
NEOMURA_SETUP_OPENSCAD_CLI_ACTION_REPOSITORY: ${{ GITHUB.ACTION_REPOSITORY }}
NEOMURA_SETUP_OPENSCAD_CLI_ACTION_REF: ${{ GITHUB.ACTION_REF }}
shell: bash
working-directory: ${{ GITHUB.ACTION_PATH }}
# Disabled until the resolution of https://github.com/actions/runner/issues/646
# - id: cache
# uses: actions/cache@v2
# with:
# path: ${{ GITHUB.ACTION_PATH }}/clone/submodules/openscad/openscad
# key: neomura-setup-openscad-cli-action-${{ GITHUB.REPOSITORY }}-${{ GITHUB.REF }}-${{ runner.os }}-${{ steps.prepare.outputs.sha }}
- run: ./build.sh
# if: steps.cache.outputs.cache-hit != 'true'
shell: bash
working-directory: ${{ GITHUB.ACTION_PATH }}
- run: ./install.sh
shell: bash
working-directory: ${{ GITHUB.ACTION_PATH }}