[FIX] Use if correctly

This commit is contained in:
lda 2023-11-02 16:03:18 -04:00
parent 679167b4ee
commit 4cbb5793f7

View file

@ -25,14 +25,16 @@ runs:
echo Downloading from "${{inputs.checkout}}".. echo Downloading from "${{inputs.checkout}}"..
echo We are on "${{runner.os}}", requested as CC echo We are on "${{runner.os}}", requested as CC
git clone https://git.telodendria.io/Telodendria/${{inputs.checkout}} git clone https://git.telodendria.io/Telodendria/${{inputs.checkout}}
- name: Compiling Cytoplasm - name: Compiling ${{inputs.checkout}}
id: compile id: compile
shell: bash shell: bash
run: | run: |
echo Compiling Cytoplasm... echo Compiling ${{inputs.checkout}}...
cd ${{inputs.checkout}} cd ${{inputs.checkout}}
export CC="${{inputs.compiler}}" export CC="${{inputs.compiler}}"
if [ ! ./configure --prefix=/usr --no-static && make ]; then if ./configure --prefix=/usr --no-static && make; then
echo "Built ${{inputs.checkout}} properly"
else
# Fails? Do it again. # Fails? Do it again.
./configure --prefix=/usr --no-static && make ./configure --prefix=/usr --no-static && make
fi fi