tomsfastmath/.drone.yml

123 lines
2.6 KiB
YAML
Raw Normal View History

---
kind: pipeline
name: build-linux
platform:
arch: amd64
2023-05-13 11:05:16 +02:00
environment:
SLEEP: 600
2023-05-13 10:01:40 +02:00
imagedefs:
- &anchor_compiler_image
image: dctl-registry.dcinet:5000/suse-15.4/gcc-113
steps:
2023-05-15 11:07:40 +02:00
- name: build
<<: *anchor_compiler_image
volumes:
2023-05-15 11:22:51 +02:00
- name: temp
2023-05-15 11:07:40 +02:00
path: /tmp
- name: cache
path: /tmp/cache
commands:
- export CC=gcc
- make -f makefile.shared test_standalone >test_gcc_1.txt 2>test_gcc_2.txt
- ./test >test_std.txt 2>test_err.txt
- name: build-fail
<<: *anchor_compiler_image
2023-05-15 11:22:51 +02:00
volumes:
- name: temp
path: /tmp
- name: cache
path: /tmp/cache
2023-05-15 11:07:40 +02:00
commands:
- echo "Go do some debugging - you've got $${SLEEP} seconds"
- sleep $${SLEEP}
- cat test_gcc_1.txt
- cat test_std.txt
- cat test_err.txt
when:
status:
- failure
- name: build-success
<<: *anchor_compiler_image
2023-05-15 11:22:51 +02:00
volumes:
- name: temp
path: /tmp
- name: cache
path: /tmp/cache
2023-05-15 11:07:40 +02:00
commands:
2023-05-15 11:37:29 +02:00
# - echo "Go check where the binaries are - you've got $${SLEEP} seconds"
# - sleep $${SLEEP}
2023-05-15 11:07:40 +02:00
- cat test_gcc_2.txt
2023-05-15 11:37:29 +02:00
depends_on:
- build
2023-05-15 11:07:40 +02:00
when:
status:
- success
- name: build-install
<<: *anchor_compiler_image
2023-05-15 11:22:51 +02:00
volumes:
- name: temp
path: /tmp
- name: cache
path: /tmp/cache
2023-05-15 11:07:40 +02:00
commands:
- make install
- ls -R -l /usr/local/* | grep tfm
2023-05-15 11:18:52 +02:00
depends_on:
- build-success
2023-05-15 10:48:29 +02:00
2023-05-13 11:11:26 +02:00
# ### TODO package up the contents of .libs and maybe the public header?
2023-05-15 11:37:29 +02:00
# #-rw-r--r-- 1 root root 325206 May 13 09:06 libtfm.a
# #lrwxrwxrwx 1 root root 12 May 13 09:06 libtfm.la -> ../libtfm.la
# #-rw-r--r-- 1 root root 909 May 13 09:06 libtfm.lai
# #lrwxrwxrwx 1 root root 15 May 13 09:06 libtfm.so -> libtfm.so.1.0.0
# #lrwxrwxrwx 1 root root 15 May 13 09:06 libtfm.so.1 -> libtfm.so.1.0.0
# #-rwxr-xr-x 1 root root 233136 May 13 09:06 libtfm.so.1.0.0
# #-rw-r--r-- 1 root root 671 May 13 09:06 libtfm.ver
2023-05-13 10:01:40 +02:00
volumes:
- name: cache
host:
path: /srv/dockerctl_icc/cache
- name: staging-icc
host:
path: /srv/dockerctl_icc/staging
2023-05-15 10:48:29 +02:00
- name: temp
2023-05-13 10:01:40 +02:00
temp: {}
trigger:
2023-05-15 11:37:29 +02:00
# For now we only run on demand
2023-05-13 10:01:40 +02:00
event:
- custom
2023-05-15 11:37:29 +02:00
# Disable running pipeline a second time when we promote a successful build
2023-05-13 10:01:40 +02:00
exclude:
- promote
2023-05-15 11:37:29 +02:00
# ---
# kind: pipeline
# name: build-windows
2023-05-15 11:37:29 +02:00
# platform:
# arch: amd64
2023-05-15 11:37:29 +02:00
# environment:
# MYCC: gcc" SHARED="-f makefile.shared"
2023-05-15 11:37:29 +02:00
# steps:
# - name: test
# image: gcc
# commands:
# - ${MYCC}" make ${SHARED} test_standalone >test_gcc_1.txt 2>test_gcc_2.txt && ./test >test_std.txt 2>test_err.txt"
...