xref: /aosp_15_r20/external/aws-crt-java/codebuild/cd/manylinux-x86-build.yml (revision 3c7ae9de214676c52d19f01067dc1a404272dc11)
1version: 0.2
2#this build spec assumes the manylinux CentOS5 custom image
3#additional packages we installed: cmake 3.5, libcrypto 1.1.0j, gcc 4.8.4, openjdk8, maven 3.6.0, gnupg 2.0.10
4phases:
5  install:
6    commands:
7  pre_build:
8    commands:
9      - export CC=gcc
10  build:
11    commands:
12      - cd aws-crt-java
13      - git submodule update --init
14      - JAVA_HOME=/opt/jdk1.8.0_201/ setarch i386 mvn -B package -DskipTests -Punix-x86 -Dcrt.classifier=linux-x86_32
15  post_build:
16    commands:
17      # get the shared libs from the native build
18      - mkdir -p ../dist
19      - cp -rv target/cmake-build/lib ../dist/
20      # get the platform specific jar with classifier
21      - cp target/*.jar ../dist/
22
23artifacts:
24  files:
25    - 'dist/**/*'
26
27cache:
28  paths:
29    - '/root/.m2/**/*'
30