mirror of
https://github.com/apple/swift-crypto
synced 2026-11-23 04:34:21 +00:00
* Add cxx interop build pipeline * Update docker-compose.2204.59.yaml * Change cxx interop CI step to build separate project instead of using cxx compiler flag * Update docker-compose for 5.10 * Fix package name in docker * Change code root dirname and remove test target --------- Co-authored-by: Yim Lee <yim_lee@apple.com>
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
# this file is not designed to be run directly
|
|
# instead, use the docker-compose.<os>.<swift> files
|
|
# eg docker-compose -f docker/docker-compose.yaml -f docker/docker-compose.1804.51.yaml run test
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
runtime-setup:
|
|
image: swift-crypto:default
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
|
|
common: &common
|
|
image: swift-crypto:default
|
|
depends_on: [runtime-setup]
|
|
volumes:
|
|
- ~/.ssh:/root/.ssh
|
|
- ..:/swift-crypto:z
|
|
working_dir: /swift-crypto
|
|
cap_drop:
|
|
- CAP_NET_RAW
|
|
- CAP_NET_BIND_SERVICE
|
|
|
|
soundness:
|
|
<<: *common
|
|
command: /bin/bash -xcl "./scripts/soundness.sh"
|
|
|
|
test:
|
|
<<: *common
|
|
# FIXME: get rid of existing warnings
|
|
#command: /bin/bash -xcl "swift test --enable-test-discovery -Xswiftc -warnings-as-errors $${SANITIZER_ARG-} $${IMPORT_CHECK_ARG-}"
|
|
command: /bin/bash -xcl "swift test --enable-test-discovery $${IMPORT_CHECK_ARG-}"
|
|
|
|
cmake:
|
|
<<: *common
|
|
command: /bin/bash -xcl "cmake -G Ninja -D CMAKE_BUILD_TYPE=Release -B out -S . && ninja -C out"
|
|
|
|
cxx-interop-build:
|
|
<<: *common
|
|
command: /bin/bash -xcl "./scripts/cxx-interop-compatibility.sh"
|
|
|
|
# util
|
|
|
|
shell:
|
|
<<: *common
|
|
entrypoint: /bin/bash
|