Skip to content

Commit

Permalink
drone: use official debian layer
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Mar 8, 2024
1 parent 441d66a commit 9b52619
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ name: debian-unstable

steps:
- name: debian-build
image: dankamongmen/unstable_builder:2022-01-29a
image: debian:unstable-slim
commands:
- export LANG=en_US.UTF-8
- export TERM=xterm
- apt-get update -y
- apt-get install -y ncurses-dev pkgconf libqrcodegen-dev libavdevice-dev cmake build-essential doctest-dev libunistring-dev libdeflate-dev libgpm-dev pandoc locales
- echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
- locale-gen
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_STATIC=off -DUSE_GPM=on -DUSE_QRCODEGEN=on -DDFSG_BUILD=on -DBUILD_FFI_LIBRARY=on
Expand All @@ -17,6 +21,7 @@ steps:
- ctest --output-on-failure
- make install
- ldconfig
- apt-get install -y python3-setuptools python3-wheel python3-pip python3-pypandoc python3-cffi-backend
- cd ../cffi
- LDFLAGS=-L/usr/local/lib CFLAGS=-I/usr/local/include python3 setup.py sdist build install
- env LD_LIBRARY_PATH=/usr/local/lib ./notcurses-pydemo > /dev/null
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ if(NOT WIN32)
# MSYS2 needs -lssp and -fstack-protector for _FORTIFY_SOURCE
# macOS with ASAN can't handle _FORTIFY_SOURCE != 1
if(NOT ${USE_ASAN})
add_compile_definitions(_FORTIFY_SOURCE=3)
add_compile_definitions(_FORTIFY_SOURCE=2)
endif()
add_compile_options(-Wformat -Werror=format-security)
endif()
Expand Down

0 comments on commit 9b52619

Please sign in to comment.