[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 name: Setups Cytoplasm
description: Setup Cytoplasm out 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: runs:
using: composite using: composite
steps: steps:
@ -8,13 +22,15 @@ runs:
id: download-cyto id: download-cyto
shell: bash shell: bash
run: | run: |
echo Downloading Cytoplasm... echo Downloading from "${{inputs.checkout}}"..
echo We are on "${{runner.os}}", requested "${{inputs.compiler}}" as CC echo We are on "${{runner.os}}", requested as CC
git clone https://git.telodendria.io/Telodendria/Cytoplasm git clone "${{inputs.checkout}}"
- name: Compiling Cytoplasm - name: Compiling Cytoplasm
id: compile-cyto id: compile
shell: bash shell: bash
run: | run: |
echo Compiling Cytoplasm... echo Compiling Cytoplasm...
cd Cytoplasm cd Cytoplasm
./configure --no-static && make && make install export CC="${{inputs.compiler}}"
./configure --no-static && make
[ "${{inputs.install}}" = "true" ] && make install