Skip to content

Commit

Permalink
Build for musl in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Jethro Beekman committed Jul 12, 2020
1 parent 47a3336 commit a967eb6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,20 @@ matrix:
- protobuf-compiler
- libsgx-dcap-ql-dev
- libclang-3.8-dev
- musl-tools
rust:
- nightly
env:
- RUST_BACKTRACE=1 LLVM_CONFIG_PATH=llvm-3.8-config
before_script:
- rustup target add x86_64-fortanix-unknown-sgx
- rustup target add x86_64-fortanix-unknown-sgx x86_64-unknown-linux-musl
script:
- cargo test --verbose --all
- cargo test --verbose -p sgx-isa --features sgxstd -Z package-features --target x86_64-fortanix-unknown-sgx --no-run
- cargo test --verbose -p sgxs-tools --features pe2sgxs --bin isgx-pe2sgx -Z package-features
- cargo test --verbose -p dcap-ql --features link -Z package-features
- cargo test --verbose -p dcap-ql --features verify -Z package-features
- cargo build --verbose -p aesm-client --target=x86_64-fortanix-unknown-sgx
# NOTE: linking glibc version of OpenSSL with musl binary.
# Unlikely to produce a working binary, but at least the build succeeds.
- mkdir -p /tmp/muslinclude && ln -sf /usr/include/x86_64-linux-gnu/openssl /tmp/muslinclude/openssl && PKG_CONFIG_ALLOW_CROSS=1 CFLAGS=-I/tmp/muslinclude cargo build -p fortanix-sgx-tools --target x86_64-unknown-linux-musl

0 comments on commit a967eb6

Please sign in to comment.