Switch to glibc build
This commit is contained in:
parent
06532ba81f
commit
6a2aa756ca
2 changed files with 12 additions and 12 deletions
20
.drone.yml
20
.drone.yml
|
@ -20,20 +20,20 @@ type: docker
|
||||||
name: release
|
name: release
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build-musl
|
- name: build
|
||||||
image: arminfriedl/xwim-build
|
image: arminfriedl/xwim-build
|
||||||
commands:
|
commands:
|
||||||
- LDFLAGS="-static-libstdc++ -static-libgcc" meson --buildtype=release build
|
- meson --buildtype=release build
|
||||||
- ninja -C build
|
- ninja -C build
|
||||||
- mkdir xwim-${DRONE_TAG}-x86_64-musl-linux
|
- mkdir xwim-${DRONE_TAG}-x86_64-glibc-linux
|
||||||
- mv build/src/xwim xwim-${DRONE_TAG}-x86_64-musl-linux
|
- mv build/src/xwim xwim-${DRONE_TAG}-x86_64-glibc-linux
|
||||||
|
|
||||||
- name: package
|
- name: package
|
||||||
image: arminfriedl/xwim-build
|
image: arminfriedl/xwim-build
|
||||||
commands:
|
commands:
|
||||||
- tar cjf xwim-${DRONE_TAG}-x86_64-musl-linux.tar.bz2 xwim-${DRONE_TAG}-x86_64-musl-linux/xwim
|
- tar cjf xwim-${DRONE_TAG}-x86_64-glibc-linux.tar.bz2 xwim-${DRONE_TAG}-x86_64-glibc-linux/xwim
|
||||||
- tar czf xwim-${DRONE_TAG}-x86_64-musl-linux.tar.gz xwim-${DRONE_TAG}-x86_64-musl-linux/xwim
|
- tar czf xwim-${DRONE_TAG}-x86_64-glibc-linux.tar.gz xwim-${DRONE_TAG}-x86_64-glibc-linux/xwim
|
||||||
- zip -r xwim-${DRONE_TAG}-x86_64-musl-linux.zip xwim-${DRONE_TAG}-x86_64-musl-linux
|
- zip -r xwim-${DRONE_TAG}-x86_64-glibc-linux.zip xwim-${DRONE_TAG}-x86_64-glibc-linux
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
|
@ -42,9 +42,9 @@ steps:
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
files:
|
files:
|
||||||
- xwim-${DRONE_TAG}-x86_64-musl-linux.tar.bz2
|
- xwim-${DRONE_TAG}-x86_64-glibc-linux.tar.bz2
|
||||||
- xwim-${DRONE_TAG}-x86_64-musl-linux.tar.gz
|
- xwim-${DRONE_TAG}-x86_64-glibc-linux.tar.gz
|
||||||
- xwim-${DRONE_TAG}-x86_64-musl-linux.zip
|
- xwim-${DRONE_TAG}-x86_64-glibc-linux.zip
|
||||||
title: xwim ${DRONE_TAG}
|
title: xwim ${DRONE_TAG}
|
||||||
checksum:
|
checksum:
|
||||||
- md5
|
- md5
|
||||||
|
|
|
@ -8,7 +8,7 @@ inc = ['archive.hpp',
|
||||||
'fileformats.hpp']
|
'fileformats.hpp']
|
||||||
|
|
||||||
libs = [dependency('libarchive', required: true),
|
libs = [dependency('libarchive', required: true),
|
||||||
dependency('fmt', required: true),
|
dependency('fmt', required: true, static: true),
|
||||||
dependency('spdlog', required: true)]
|
dependency('spdlog', required: true, static: true)]
|
||||||
|
|
||||||
executable('xwim', src, inc, dependencies: libs)
|
executable('xwim', src, inc, dependencies: libs)
|
||||||
|
|
Loading…
Reference in a new issue