From f93ae998c291ad1bba79bce8dbbfa48f3509ca6f Mon Sep 17 00:00:00 2001 From: Juan Pablo Tosso Date: Tue, 7 Sep 2021 10:59:02 -0300 Subject: [PATCH] fix workflow --- .github/workflows/tests.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index af849d4..2c7c530 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,14 +27,14 @@ jobs: - name: Setup libinjection run: | TMPDIR=/tmp/libinjection - REPO=https://github.com/libinjection/libinjection - gcc -std=c99 -Wall -Werror -fpic -c $(TMPDIR)/src/libinjection_sqli.c -o $(TMPDIR)/libinjection_sqli.o - gcc -std=c99 -Wall -Werror -fpic -c $(TMPDIR)/src/libinjection_xss.c -o $(TMPDIR)/libinjection_xss.o - gcc -std=c99 -Wall -Werror -fpic -c $(TMPDIR)/src/libinjection_html5.c -o $(TMPDIR)/libinjection_html5.o - gcc -dynamiclib -shared -o $(TMPDIR)/libinjection.so $(TMPDIR)/libinjection_sqli.o $(TMPDIR)/libinjection_xss.o $(TMPDIR)/libinjection_html5.o - cp $(TMPDIR)/*.so /usr/local/lib - cp $(TMPDIR)/*.o /usr/local/lib - cp $(TMPDIR)/src/*.h /usr/local/include/ + git clone https://github.com/libinjection/libinjection $TMPDIR + gcc -std=c99 -Wall -Werror -fpic -c $TMPDIR/src/libinjection_sqli.c -o $TMPDIR/libinjection_sqli.o + gcc -std=c99 -Wall -Werror -fpic -c $TMPDIR/src/libinjection_xss.c -o $TMPDIR/libinjection_xss.o + gcc -std=c99 -Wall -Werror -fpic -c $TMPDIR/src/libinjection_html5.c -o $TMPDIR/libinjection_html5.o + gcc -dynamiclib -shared -o $TMPDIR/libinjection.so $TMPDIR/libinjection_sqli.o $TMPDIR/libinjection_xss.o $TMPDIR/libinjection_html5.o + cp $TMPDIR/*.so /usr/local/lib + cp $TMPDIR/*.o /usr/local/lib + cp $TMPDIR/src/*.h /usr/local/include/ chmod 444 /usr/local/include/libinjection* rm -rf /tmp/libinjection sudo ldconfig