ci is so trial and error
This commit is contained in:
parent
5f2de7de05
commit
df9a7cc096
11
.drone.yml
11
.drone.yml
@ -10,7 +10,7 @@ steps:
|
|||||||
- name: submodules
|
- name: submodules
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
commands:
|
commands:
|
||||||
- git submodule update --recursive --remote
|
- git submodule update --init --recursive
|
||||||
|
|
||||||
- name: build-mxe
|
- name: build-mxe
|
||||||
image: ubuntu:bionic
|
image: ubuntu:bionic
|
||||||
@ -18,13 +18,12 @@ steps:
|
|||||||
- name: cache
|
- name: cache
|
||||||
path: /release
|
path: /release
|
||||||
commands:
|
commands:
|
||||||
- export KSHAREVER=$(cat src/main.cpp | grep setApplicationVersion | sed "s/\\s*a.setApplicationVersion(\"//g" | sed "s/\");//g")
|
|
||||||
- rm -rf build/ || true
|
- rm -rf build/ || true
|
||||||
- apt-get update && apt-get install -yqq wget gnupg2 curl rsync p7zip git
|
- apt-get update && apt-get install -yqq wget gnupg2 curl rsync p7zip git
|
||||||
- mkdir build && pwd && ls -lahR .
|
- mkdir build && pwd && ls -lahR .
|
||||||
- cd build
|
- cd build
|
||||||
- wget -qO - https://pkg.mxe.cc/repos/apt/client-conf/mxeapt.gpg | apt-key add -
|
- wget -qO - https://pkg.mxe.cc/repos/apt/client-conf/mxeapt.gpg | apt-key add -
|
||||||
- echo "deb https://pkg.mxe.cc/repos/apt/ bionic main" >> /etc/apt/sources.list
|
- echo 'deb https://pkg.mxe.cc/repos/apt/ bionic main' >> /etc/apt/sources.list
|
||||||
- apt-get update && apt-get install -yqq mxe-x86-64-w64-mingw32.shared-qtbase mxe-x86-64-w64-mingw32.shared-qtmultimedia mxe-x86-64-w64-mingw32.shared-qttools mxe-x86-64-w64-mingw32.shared-qtwinextras
|
- apt-get update && apt-get install -yqq mxe-x86-64-w64-mingw32.shared-qtbase mxe-x86-64-w64-mingw32.shared-qtmultimedia mxe-x86-64-w64-mingw32.shared-qttools mxe-x86-64-w64-mingw32.shared-qtwinextras
|
||||||
- apt-get install -yqq mxe-x86-64-w64-mingw32.shared-ffmpeg
|
- apt-get install -yqq mxe-x86-64-w64-mingw32.shared-ffmpeg
|
||||||
- export PATH=/usr/lib/mxe/usr/x86_64-w64-mingw32.shared/qt5/bin:$PATH
|
- export PATH=/usr/lib/mxe/usr/x86_64-w64-mingw32.shared/qt5/bin:$PATH
|
||||||
@ -37,7 +36,8 @@ steps:
|
|||||||
- cp src/release/kshare.exe dist/KShare.exe
|
- cp src/release/kshare.exe dist/KShare.exe
|
||||||
- /usr/lib/mxe/tools/copydlldeps.sh --infile dist/KShare.exe --destdir dist/ --recursivesrcdir /usr/lib/mxe/usr/x86_64-w64-mingw32.shared/ --srcdir ../src/ --copy --enforcedir /usr/lib/mxe/usr/x86_64-w64-mingw32.shared/qt5/plugins/platforms/ --objdump /usr/lib/mxe/usr/bin/x86_64-w64-mingw32.shared-objdump
|
- /usr/lib/mxe/tools/copydlldeps.sh --infile dist/KShare.exe --destdir dist/ --recursivesrcdir /usr/lib/mxe/usr/x86_64-w64-mingw32.shared/ --srcdir ../src/ --copy --enforcedir /usr/lib/mxe/usr/x86_64-w64-mingw32.shared/qt5/plugins/platforms/ --objdump /usr/lib/mxe/usr/bin/x86_64-w64-mingw32.shared-objdump
|
||||||
- mkdir dist/mediaservice; cp /usr/lib/mxe/usr/x86_64-w64-mingw32.shared/qt5/plugins/mediaservice/dsengine.dll dist/mediaservice
|
- mkdir dist/mediaservice; cp /usr/lib/mxe/usr/x86_64-w64-mingw32.shared/qt5/plugins/mediaservice/dsengine.dll dist/mediaservice
|
||||||
- cd dist/; cp KShare.exe /release/KShare_v${KSHAREVER}.exe; zip -r /release/win_kshare_v${KSHAREVER}_portable.zip *
|
- cd dist/; cp KShare.exe "/release/KShare_v${DRONE_COMMIT_SHA:0:9}.exe"; zip -r "/release/win_kshare_v${DRONE_COMMIT_SHA:0:9}_portable.zip" *
|
||||||
|
- ls -lahR /release/
|
||||||
|
|
||||||
- name: build-ubuntu
|
- name: build-ubuntu
|
||||||
image: buildpack-deps:19.10
|
image: buildpack-deps:19.10
|
||||||
@ -45,14 +45,13 @@ steps:
|
|||||||
- name: cache
|
- name: cache
|
||||||
path: /release
|
path: /release
|
||||||
commands:
|
commands:
|
||||||
- export KSHAREVER=$(cat src/main.cpp | grep setApplicationVersion | sed "s/\\s*a.setApplicationVersion(\"//g" | sed "s/\");//g")
|
|
||||||
- rm -rf build/ || true
|
- rm -rf build/ || true
|
||||||
- apt-get update -yqq && apt-get install -yqq build-essential cmake \gcc g++ qt5-default qt5-qmake qtmultimedia5-dev libqt5svg5-dev libx11-dev libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libqt5x11extras5-dev libxcb-util-dev libxcb-cursor-dev libxcb1-dev
|
- apt-get update -yqq && apt-get install -yqq build-essential cmake \gcc g++ qt5-default qt5-qmake qtmultimedia5-dev libqt5svg5-dev libx11-dev libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libqt5x11extras5-dev libxcb-util-dev libxcb-cursor-dev libxcb1-dev
|
||||||
- qmake --version
|
- qmake --version
|
||||||
- mkdir build && pwd && ls -lahR .
|
- mkdir build && pwd && ls -lahR .
|
||||||
- cd build && pwd && ls; qmake ..; make -j2; cd ..
|
- cd build && pwd && ls; qmake ..; make -j2; cd ..
|
||||||
- mkdir /release || true
|
- mkdir /release || true
|
||||||
- cp build/src/kshare /release/kshare_v${KSHAREVER}
|
- cp build/src/kshare "/release/kshare_v${DRONE_COMMIT_SHA:0:9}"
|
||||||
- cd packages/; ./makedeb.sh ci; cp *.deb /release/; cd ..
|
- cd packages/; ./makedeb.sh ci; cp *.deb /release/; cd ..
|
||||||
|
|
||||||
- name: build-arch
|
- name: build-arch
|
||||||
|
Loading…
Reference in New Issue
Block a user