[MOD] Change to a general compile/install action
This commit is contained in:
parent
41f6ee4378
commit
28a05ae650
1 changed files with 21 additions and 5 deletions
26
action.yml
26
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
|
||||
|
|
Loading…
Reference in a new issue