From 28a05ae650e153f785be035b8b637b95a6ff0992 Mon Sep 17 00:00:00 2001 From: Load Accumulator Date: Thu, 2 Nov 2023 20:41:03 +0100 Subject: [PATCH] [MOD] Change to a general compile/install action --- action.yml | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) 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