diff --git a/action.yml b/action.yml index 8b7b56c..d4127c3 100644 --- a/action.yml +++ b/action.yml @@ -1,6 +1,20 @@ name: Setups Cytoplasm description: Setup Cytoplasm out +inputs: + checkout: + description: Link to checkout from + required: false + default: https://git.telodendria.io/Telodendria/Cytoplasm + compiler: + description: Compiler to use as CC + required: false + default: gcc + install: + description: Whenever to make install or not.(true/false) + required: false + default: true + runs: using: composite steps: @@ -8,13 +22,15 @@ runs: id: download-cyto shell: bash run: | - echo Downloading Cytoplasm... - echo We are on "${{runner.os}}", requested "${{inputs.compiler}}" as CC - git clone https://git.telodendria.io/Telodendria/Cytoplasm + echo Downloading from "${{inputs.checkout}}".. + echo We are on "${{runner.os}}", requested as CC + git clone "${{inputs.checkout}}" - name: Compiling Cytoplasm - id: compile-cyto + id: compile shell: bash run: | echo Compiling Cytoplasm... cd Cytoplasm - ./configure --no-static && make && make install + export CC="${{inputs.compiler}}" + ./configure --no-static && make + [ "${{inputs.install}}" = "true" ] && make install