Commit e4b3043a authored by Mart Lubbers's avatar Mart Lubbers

ci and package building

parent f19e7825
Pipeline #14903 passed with stage
in 1 minute and 43 seconds
......@@ -9,3 +9,5 @@ test
*-sapl
*-www
*.swp
*.zip
*.tar.gz
client:
image: camilstaps/clean:nightly
script:
- apt-get update -qq
- apt-get install -yy build-essential gcc-mingw-w64
- install_clean.sh clean-base
- sh mkpkgs.sh
CLEAN_HOME?=/opt/clean
ifeq ($(OS), Windows_NT)
DETECTED_OS=Windows
DETECTED_OS?=Windows
else
DETECTED_OS=POSIX
DETECTED_OS?=POSIX
endif
test: test.icl TTY.icl TTY.dcl Clean\ System\ Files/ctty.o
......@@ -11,7 +11,7 @@ test: test.icl TTY.icl TTY.dcl Clean\ System\ Files/ctty.o
Clean\ System\ Files/ctty.o: $(DETECTED_OS)/tty.c
mkdir -p Clean\ System\ Files
gcc -c "$<" -o "$@"
$(CC) -c "$<" -o "$@"
Monitor.prj:
cpm project $(basename $@) create
......@@ -19,5 +19,7 @@ Monitor.prj:
cpm project $@ set -h 2000m -s 20m -dynamics
cpm project $@ path add "$$PWD/POSIX"
cross:
clean:
$(RM) -r $(DETECTED_OS)/Clean\ System\ Files/* Clean\ System\ Files/* test
#!/bin/sh
#linux
mkdir CleanSerial-linux64
rm -rf "./Clean System Files/*"
make -B 'Clean System Files/ctty.o'
mv 'Clean System Files' CleanSerial-linux64
cp TTY.[id]cl iTasksTTY.[id]cl POSIX/Platform.[id]cl CleanSerial-linux64
tar -czvf CleanSerial-linux64.tar.gz CleanSerial-linux64
rm -r CleanSerial-linux64
#windows64
mkdir CleanSerial-win64
rm -rf "./Clean System Files/*"
DETECTED_OS=Windows CC=x86_64-w64-mingw32-gcc make -B 'Clean System Files/ctty.o'
mv 'Clean System Files' CleanSerial-win64
cp TTY.[id]cl iTasksTTY.[id]cl Windows/Platform.[id]cl CleanSerial-win64
zip -rv CleanSerial-win64.zip CleanSerial-win64
rm -r CleanSerial-win64
#windows32
mkdir CleanSerial-win32
rm -rf "./Clean System Files/*"
DETECTED_OS=Windows CC=x86_64-w64-mingw32-gcc-win32 make -B 'Clean System Files/ctty.o'
mv 'Clean System Files' CleanSerial-win32
cp TTY.[id]cl iTasksTTY.[id]cl Windows/Platform.[id]cl CleanSerial-win32
zip -rv CleanSerial-win32.zip CleanSerial-win32
rm -r CleanSerial-win32
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment