[MOD] Change to a general compile/install action

This commit is contained in:
lda 2023-11-02 20:41:03 +01:00
parent 41f6ee4378
commit 28a05ae650
Signed by: lda
GPG key ID: 6898757653ABE3E6

View file

@ -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