39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
name: Setups Cytoplasm
|
|
description: Setup Cytoplasm out
|
|
|
|
inputs:
|
|
checkout:
|
|
description: Link to checkout from
|
|
required: false
|
|
default: 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:
|
|
- name: Downloading Cytoplasm
|
|
id: download-cyto
|
|
shell: bash
|
|
run: |
|
|
echo Downloading from "${{inputs.checkout}}"..
|
|
echo We are on "${{runner.os}}", requested as CC
|
|
git clone https://git.telodendria.io/Telodendria/${{inputs.checkout}}
|
|
- name: Compiling Cytoplasm
|
|
id: compile
|
|
shell: bash
|
|
run: |
|
|
echo Compiling Cytoplasm...
|
|
cd ${{inputs.checkout}}
|
|
export CC="${{inputs.compiler}}"
|
|
if [ ! ./configure --prefix=/usr --no-static && make ]; then
|
|
# Fails? Do it again.
|
|
./configure --prefix=/usr --no-static && make
|
|
fi
|
|
[ "${{inputs.install}}" = "true" ] && make install
|