Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jptosso committed Sep 7, 2021
1 parent 0116382 commit f93ae99
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f93ae99

Please sign in to comment.