Static release build, cleanup
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Armin Friedl 2021-02-24 22:17:58 +01:00
parent a6fb93a484
commit 8873e7930b
Signed by: armin
GPG key ID: 48C726EEE7FBCBC8

View file

@ -3,29 +3,17 @@ type: docker
name: default name: default
steps: steps:
- name: build - name: build-shared
image: arminfriedl/xwim-build:shared image: arminfriedl/xwim-build:shared
commands: commands:
# - meson wrap install gtest - meson target/shared
- meson target/shared #-Db_coverage=true
- ninja -C target/shared - ninja -C target/shared
# - ninja -C build test && ninja -C build coverage
# - echo "******** TEST LOGS ***********"
# - cat build/meson-logs/testlog.txt
# - echo "****** COVERAGE LOGS *********"
# - cat build/meson-logs/coverage.txt
- name: build-static - name: build-static
image: arminfriedl/xwim-build:static image: arminfriedl/xwim-build:static
commands: commands:
# - meson wrap install gtest - meson --default-library=static target/static
- meson --default-library static target/static #-Db_coverage=true
- ninja -C target/static - ninja -C target/static
# - ninja -C build test && ninja -C build coverage
# - echo "******** TEST LOGS ***********"
# - cat build/meson-logs/testlog.txt
# - echo "****** COVERAGE LOGS *********"
# - cat build/meson-logs/coverage.txt
trigger: trigger:
event: event:
@ -38,20 +26,30 @@ type: docker
name: release name: release
steps: steps:
- name: build - name: build-shared
image: arminfriedl/xwim-build image: arminfriedl/xwim-build:shared
commands: commands:
- meson wrap install gtest - meson --buildtype=release target/shared
- meson --buildtype=release build - ninja -C target/shared
- ninja -C build - mkdir xwim-${DRONE_TAG}-x86_64-glibc-linux-shared
- mkdir xwim-${DRONE_TAG}-x86_64-glibc-linux - mv target/shared/src/xwim xwim-${DRONE_TAG}-x86_64-glibc-linux-shared
- mv build/src/xwim xwim-${DRONE_TAG}-x86_64-glibc-linux
- name: build-static
image: arminfriedl/xwim-build:static
commands:
- meson --buildtype=release --default-library=static target/static
- ninja -C target/static
- mkdir xwim-${DRONE_TAG}-x86_64-musl-linux-static
- mv target/static/src/xwim xwim-${DRONE_TAG}-x86_64-musl-linux-static
- name: package - name: package
image: arminfriedl/xwim-build image: arminfriedl/xwim-build
commands: commands:
- tar czf xwim-${DRONE_TAG}-x86_64-glibc-linux.tar.gz xwim-${DRONE_TAG}-x86_64-glibc-linux/xwim - tar czf xwim-${DRONE_TAG}-x86_64-glibc-linux-shared.tar.gz xwim-${DRONE_TAG}-x86_64-glibc-linux-shared/xwim
- zip -r xwim-${DRONE_TAG}-x86_64-glibc-linux.zip xwim-${DRONE_TAG}-x86_64-glibc-linux - tar czf xwim-${DRONE_TAG}-x86_64-musl-linux-static.tar.gz xwim-${DRONE_TAG}-x86_64-musl-linux-static/xwim
depends_on:
- build-shared
- build-static
- name: publish - name: publish
image: plugins/gitea-release image: plugins/gitea-release
@ -60,13 +58,14 @@ steps:
api_key: api_key:
from_secret: gitea_token from_secret: gitea_token
files: files:
- xwim-${DRONE_TAG}-x86_64-glibc-linux.tar.bz2 - xwim-${DRONE_TAG}-x86_64-glibc-linux-shared.tar.gz
- xwim-${DRONE_TAG}-x86_64-glibc-linux.tar.gz - xwim-${DRONE_TAG}-x86_64-musl-linux-static.tar.gz
- xwim-${DRONE_TAG}-x86_64-glibc-linux.zip
title: xwim ${DRONE_TAG} title: xwim ${DRONE_TAG}
checksum: checksum:
- md5 - md5
- sha256 - sha256
depends_on:
- package
trigger: trigger:
event: event: