* .gitlab-ci.yml (mingw-shared, mingw-static): Build from a tarball.
This commit is contained in:
parent
d4e3b0bed4
commit
d5bbeceeb2
1 changed files with 25 additions and 11 deletions
|
|
@ -155,47 +155,61 @@ arch-gcc-glibcxxdebug:
|
|||
- ./*.log
|
||||
|
||||
mingw-shared:
|
||||
stage: build
|
||||
stage: build2
|
||||
needs:
|
||||
# We start from the tarball generated from a non-cross-compiling
|
||||
# job, so that all generated files are included, especially those
|
||||
# built from the executables.
|
||||
- job: debian-stable-gcc
|
||||
artifacts: true
|
||||
only:
|
||||
- branches
|
||||
except:
|
||||
- /wip/
|
||||
image: gitlab-registry.lrde.epita.fr/spot/buildenv/debian
|
||||
script:
|
||||
- autoreconf -vfi
|
||||
- VERSION=`autoconf --trace='AC_INIT:$2'`
|
||||
- tar xvf spot-$VERSION.tar.gz
|
||||
- cd spot-$VERSION
|
||||
- ./configure CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++-posix --host i686-w64-mingw32 --disable-python
|
||||
- touch doc/org-stamp
|
||||
- make
|
||||
artifacts:
|
||||
when: on_failure
|
||||
paths:
|
||||
- tests/*/*.log
|
||||
- ./*.log
|
||||
- spot-*/tests/*/*.log
|
||||
- spot-*/*.log
|
||||
|
||||
mingw-static:
|
||||
stage: build
|
||||
stage: build2
|
||||
needs:
|
||||
# We start from the tarball generated from a non-cross-compiling
|
||||
# job, so that all generated files are included, especially those
|
||||
# built from the executables.
|
||||
- job: debian-stable-gcc
|
||||
artifacts: true
|
||||
only:
|
||||
- branches
|
||||
except:
|
||||
- /wip/
|
||||
image: gitlab-registry.lrde.epita.fr/spot/buildenv/debian
|
||||
script:
|
||||
- VERSION=`autoconf --trace='AC_INIT:$2'`
|
||||
- tar xvf spot-$VERSION.tar.gz
|
||||
- cd spot-$VERSION
|
||||
- mkdir install_dir
|
||||
- autoreconf -vfi
|
||||
- ./configure CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++-posix --host i686-w64-mingw32 --disable-python --disable-shared --enable-optimizations --disable-devel LDFLAGS='-static-libgcc -static-libstdc++ -Wl,-Bstatic,--whole-archive -Wl,-lwinpthread -Wl,--no-whole-archive' --prefix=/usr
|
||||
- touch doc/org-stamp
|
||||
- make
|
||||
- make install-exec DESTDIR=$PWD/install_dir
|
||||
- VERSION=`autoconf --trace='AC_INIT:$2'`
|
||||
- cd install_dir
|
||||
- i686-w64-mingw32-strip usr/bin/*
|
||||
- tar cfvz ../spot-${VERSION}-${CI_COMMIT_REF_SLUG}-bin.tar.gz *
|
||||
artifacts:
|
||||
when: always
|
||||
paths:
|
||||
- tests/*/*.log
|
||||
- ./*.log
|
||||
- ./*.tar.gz
|
||||
- spot-*/tests/*/*.log
|
||||
- spot-*/*.log
|
||||
- spot-*/*.tar.gz
|
||||
|
||||
debpkg-stable:
|
||||
stage: build
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue