setup-cytoplasm-telodendria/action.yml

42 lines
1.1 KiB
YAML
Raw Normal View History

2023-11-02 19:17:31 +00:00
name: Setups Cytoplasm
description: Setup Cytoplasm out
inputs:
checkout:
description: Link to checkout from
required: false
2023-11-02 19:46:15 +00:00
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
2023-11-02 19:17:31 +00:00
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
2023-11-02 19:46:15 +00:00
git clone https://git.telodendria.io/Telodendria/${{inputs.checkout}}
2023-11-02 20:03:18 +00:00
- name: Compiling ${{inputs.checkout}}
id: compile
2023-11-02 19:17:31 +00:00
shell: bash
run: |
2023-11-02 20:03:18 +00:00
echo Compiling ${{inputs.checkout}}...
2023-11-02 19:46:15 +00:00
cd ${{inputs.checkout}}
export CC="${{inputs.compiler}}"
2023-11-02 20:03:18 +00:00
if ./configure --prefix=/usr --no-static && make; then
echo "Built ${{inputs.checkout}} properly"
else
2023-11-02 19:59:24 +00:00
# Fails? Do it again.
./configure --prefix=/usr --no-static && make
fi
2023-11-02 19:53:27 +00:00
[ "${{inputs.install}}" = "true" ] && make install