xref: /aosp_15_r20/external/aws-crt-java/codebuild/linux-gcc-7x-x64.yml (revision 3c7ae9de214676c52d19f01067dc1a404272dc11)
1version: 0.2
2#this build spec assumes the ubuntu aws/codebuild/java:openjdk-8 image
3phases:
4  install:
5    commands:
6      - sudo add-apt-repository ppa:openjdk-r/ppa
7      - sudo add-apt-repository ppa:ubuntu-toolchain-r/test
8      - sudo apt-get update -y
9      - sudo apt-get install gcc-7 cmake3 ninja-build -y
10  pre_build:
11    commands:
12      - export CC=gcc-7
13  build:
14    commands:
15      - echo Build started on `date`
16      - $CODEBUILD_SRC_DIR/codebuild/common-linux.sh
17  post_build:
18    commands:
19      - echo Build completed on `date`
20
21artifacts:
22  discard-paths: yes
23  files: 
24    - 'target/surefire-reports/**'
25    - 'hs_err_pid*'
26    - 'core*'
27