[MOD] No longer use upstream

This commit is contained in:
lda 2023-11-03 12:09:56 +01:00
parent ecce010d14
commit f480219e43

View file

@ -1,43 +1,62 @@
name: Setups Cytoplasm name: Setup Cytoplasm/Telodendria
description: Setup Cytoplasm out description: Setup Cytoplasm or Telodendria out
inputs: inputs:
checkout: to_install:
description: Link to checkout from description:
required: false required: false
default: Cytoplasm default: Cytoplasm
compiler: compiler:
description: Compiler to use as CC description: Compiler to use as CC
required: false required: false
default: gcc default: gcc
install: ssl:
description: Whenever to make install or not.(true/false) description: SSL library used
required: false required: false
default: true default: openssl
runs: runs:
using: composite using: composite
steps: steps:
- name: Downloading Cytoplasm - name: Downloading Cytoplasm/Telodendria
id: download-cyto id: download-cyto-telo
if: "${{inputs.to_install == 'Cytoplasm' }}"
shell: bash shell: bash
run: | run: |
echo Downloading from "${{inputs.checkout}}".. echo Downloading Cytoplasm...
echo We are on "${{runner.os}}", requested as CC # Shallow build, since we don't have to deal with that.
git clone https://git.telodendria.io/Telodendria/${{inputs.checkout}} git clone --depth=1 https://git.telodendria.io/Telodendria/Cytoplasm Cytoplasm
- name: Downloading Cytoplasm/Telodendria
id: download-cyto-telo
if: "${{inputs.to_install == 'Telodendria' }}"
shell: bash
run: |
# Download the right branch of Telodendria.
echo Downloading Telodendria...
git clone ${{github.repositoryUrl}} Telodendria
cd Telodendria
git checkout ${{github.ref_name}}
- name: Compiling ${{inputs.checkout}} - name: Compiling ${{inputs.checkout}}
id: compile id: compile
shell: bash shell: bash
run: | run: |
echo Compiling ${{inputs.checkout}}... echo Compiling ${{inputs.to_install}}...
cd ${{inputs.checkout}} cd ${{inputs.to_install}}
export CC="${{inputs.compiler}}" export CC="${{inputs.compiler}}"
./configure --prefix=/usr --no-static
# We need to tell the valid SSL library if we're dealing with Cytoplasm.
# TODO: Install Cytoplasm to some temporary directory instead of being
# invasive and putting it in /usr.
[ "${{inputs.to_install}}" = "Cytoplasm" ] && ./configure --prefix=/usr --no-static --with-${{inputs.ssl}}
[ "${{inputs.to_install}}" = "Cytoplasm" ] || ./configure --no-static
if ! make; then if ! make; then
# Fails? Do it again. Hopefully, it should have # Fails? Do it again. Hopefully, it should have
# seen all of the schemas by then. # seen all of the schemas by then.
#
# TODO: Fix this in Telodendria!
./configure --prefix=/usr --no-static ./configure --prefix=/usr --no-static
make 2>&1 make 2>&1
fi fi
[ "${{inputs.install}}" = "true" ] && make install [ "${{inputs.install}}" = "true" ] && make install
exit 0 # Oops! echo Done!