* .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
|
- ./*.log
|
||||||
|
|
||||||
mingw-shared:
|
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:
|
only:
|
||||||
- branches
|
- branches
|
||||||
except:
|
except:
|
||||||
- /wip/
|
- /wip/
|
||||||
image: gitlab-registry.lrde.epita.fr/spot/buildenv/debian
|
image: gitlab-registry.lrde.epita.fr/spot/buildenv/debian
|
||||||
script:
|
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
|
- ./configure CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++-posix --host i686-w64-mingw32 --disable-python
|
||||||
- touch doc/org-stamp
|
|
||||||
- make
|
- make
|
||||||
artifacts:
|
artifacts:
|
||||||
when: on_failure
|
when: on_failure
|
||||||
paths:
|
paths:
|
||||||
- tests/*/*.log
|
- spot-*/tests/*/*.log
|
||||||
- ./*.log
|
- spot-*/*.log
|
||||||
|
|
||||||
mingw-static:
|
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:
|
only:
|
||||||
- branches
|
- branches
|
||||||
except:
|
except:
|
||||||
- /wip/
|
- /wip/
|
||||||
image: gitlab-registry.lrde.epita.fr/spot/buildenv/debian
|
image: gitlab-registry.lrde.epita.fr/spot/buildenv/debian
|
||||||
script:
|
script:
|
||||||
|
- VERSION=`autoconf --trace='AC_INIT:$2'`
|
||||||
|
- tar xvf spot-$VERSION.tar.gz
|
||||||
|
- cd spot-$VERSION
|
||||||
- mkdir install_dir
|
- 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
|
- ./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
|
- touch doc/org-stamp
|
||||||
- make
|
- make
|
||||||
- make install-exec DESTDIR=$PWD/install_dir
|
- make install-exec DESTDIR=$PWD/install_dir
|
||||||
- VERSION=`autoconf --trace='AC_INIT:$2'`
|
|
||||||
- cd install_dir
|
- cd install_dir
|
||||||
- i686-w64-mingw32-strip usr/bin/*
|
- i686-w64-mingw32-strip usr/bin/*
|
||||||
- tar cfvz ../spot-${VERSION}-${CI_COMMIT_REF_SLUG}-bin.tar.gz *
|
- tar cfvz ../spot-${VERSION}-${CI_COMMIT_REF_SLUG}-bin.tar.gz *
|
||||||
artifacts:
|
artifacts:
|
||||||
when: always
|
when: always
|
||||||
paths:
|
paths:
|
||||||
- tests/*/*.log
|
- spot-*/tests/*/*.log
|
||||||
- ./*.log
|
- spot-*/*.log
|
||||||
- ./*.tar.gz
|
- spot-*/*.tar.gz
|
||||||
|
|
||||||
debpkg-stable:
|
debpkg-stable:
|
||||||
stage: build
|
stage: build
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue