ci: fix build commands
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Glenn Y. Rolland 2023-12-26 15:21:05 +01:00
parent 5452136d68
commit d7ec0fb53e

View file

@ -7,21 +7,21 @@ steps:
- name: build - name: build
image: alpine:latest image: alpine:latest
environment: environment:
PACKAGE_BASENAME: bulk-barrage_linux_amd64 PACKAGE_BASENAME: igmpgen_linux_amd64
commands: commands:
- apk update - apk update
- apk add cmake gcc g++ libnet libnet-dev debian-devscripts rpm make - apk add cmake gcc g++ libnet libnet-dev debian-devscripts rpm make
- cmake -S . -B _build - cmake -S . -B _build
- cmake --build _build - cmake --build _build
- make -C _build/ package - make -C _build/ package
- mkdir -p /_cache/bin /_cache/packages
- cp -r _build/igmpgen /_cache/bin/$PACKAGE_BASENAME
- ls -l _build
- _build/igmpgen --help
#- cp -r _build/igmpgen /_cache/bin/$PACKAGE_BASENAME
volumes: volumes:
- name: cache - name: cache
path: /_cache path: /_cache
commands:
- strip bin/bulk-barrage
- ./bin/bulk-barrage --version
- mkdir -p /_cache/bin
- cp -r bin/bulk-barrage /_cache/bin/$PACKAGE_BASENAME
- name: publish:tag - name: publish:tag
image: alpine image: alpine