Skip to content

Commit

Permalink
[Misc] Add aarch64 build/test in acitons
Browse files Browse the repository at this point in the history
Summary: The same as title

Test Plan: CICD

Reviewed-by: D-D-H, yuleil

Issue: #548
  • Loading branch information
Accelerator1996 committed Jun 13, 2023
1 parent 6a17d17 commit c58c56a
Showing 1 changed file with 110 additions and 0 deletions.
110 changes: 110 additions & 0 deletions .github/workflows/submit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,113 @@ jobs:
cat /__w/dragonwell8/dragonwell8/JTreport/newfailures.txt /__w/dragonwell8/dragonwell8/JTreport/other_errors.txt;
exit 1 ;
fi
linux_aarch64_release_build:
needs: prerequisites
name: Linux aarch64(release)
runs-on: ["ubuntu", "ARM64"]
steps:
- name: Update apt and download dependency
run: |
sudo apt update -y
sudo apt install -y libxtst-dev libxt-dev libxrender-dev libxrandr-dev libxi-dev libcups2-dev libfontconfig1-dev libasound2-dev unzip zip openjdk-8-jdk
- name: Get boot jdk
run: |
if [ ! -f /home/${USER}/dragonwell8/dragonwell-8.15.16/bin/java ];then
mkdir -p /home/${USER}/dragonwell8
rm -rf /home/${USER}/dragonwell8/* /home/${USER}/dragonwell8.tar.gz
wget https://dragonwell.oss-cn-shanghai.aliyuncs.com/8.15.16/Alibaba_Dragonwell_Extended_8.15.16_aarch64_linux.tar.gz -O /home/${USER}/dragonwell8.tar.gz
tar zxf /home/${USER}/dragonwell8.tar.gz -C /home/${USER}/dragonwell8
fi
- name: Checkout target source
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Compile release
run: |
sh configure --with-debug-level=release --with-cacerts-file=${PWD}/common/security/cacerts --with-milestone=fcs --enable-unlimited-crypto --with-boot-jdk=/home/${USER}/dragonwell8/dragonwell-8.15.16
make images CONF=linux-aarch64-normal-server-release
- name: Upload Test image
uses: actions/upload-artifact@v2
with:
name: dragonwell8_release_image_${{ needs.prerequisites.outputs.bundle_id }}
path: |
build/linux-aarch64-normal-server-release/images/j2sdk-image
linux_aarch64_debug_build:
needs: prerequisites
name: Linux aarch64(fastdebug)
runs-on: ["ubuntu", "ARM64"]
steps:
- name: Update apt and download dependency
run: |
sudo apt update -y
sudo apt install -y libxtst-dev libxt-dev libxrender-dev libxrandr-dev libxi-dev libcups2-dev libfontconfig1-dev libasound2-dev unzip zip openjdk-8-jdk
- name: Get boot jdk
run: |
if [ ! -f /home/${USER}/dragonwell8/dragonwell-8.15.16/bin/java ];then
mkdir -p /home/${USER}/dragonwell8
rm -rf /home/${USER}/dragonwell8/* /home/${USER}/dragonwell8.tar.gz
wget https://dragonwell.oss-cn-shanghai.aliyuncs.com/8.15.16/Alibaba_Dragonwell_Extended_8.15.16_aarch64_linux.tar.gz -O /home/${USER}/dragonwell8.tar.gz
tar zxf /home/${USER}/dragonwell8.tar.gz -C /home/${USER}/dragonwell8
fi
- name: Checkout target source
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Compile debug
run: |
sh configure --with-debug-level=fastdebug --with-cacerts-file=${PWD}/common/security/cacerts --with-milestone=fcs --enable-unlimited-crypto --with-boot-jdk=/home/${USER}/dragonwell8/dragonwell-8.15.16
make images CONF=linux-aarch64-normal-server-fastdebug
linux_aarch64_test:
name: Linux aarch64 Test
needs:
- prerequisites
- linux_aarch64_release_build

runs-on: ["ubuntu", "ARM64"]
strategy:
fail-fast: false
matrix:
test:
- jdk/test/:jdk_tier1
- jdk/test/:dragonwell_jdk_features
- hotspot/test/:hotspot_tier1
- hotspot/test/:hotspot_jwarmup
- hotspot/test/:hotspot_elastic_heap
steps:
- name: Checkout target source
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Download image
id: jtreg_restore
uses: actions/download-artifact@v2
with:
name: dragonwell8_release_image_${{ needs.prerequisites.outputs.bundle_id }}
path: /opt/dragonwell8
continue-on-error: false
- name: Test image version
run: |
ls /opt/dragonwell8
chmod -R 777 /opt/dragonwell8
/opt/dragonwell8/bin/java -version
- name: Get jtreg image
run: |
if [ ! -f /home/${USER}/jtreg/bin/jtreg ];then
wget https://compiler-ci-bucket.oss-cn-hangzhou.aliyuncs.com/tools/jtreg_5_1_b01.zip -O /home/${USER}/jtreg_5_1_b01.zip
cd /home/${USER}
sudo apt update -y
sudo apt install -y unzip
unzip jtreg_5_1_b01.zip
fi
- name: Test
run: |
/home/${USER}/jtreg/bin/jtreg -agentvm -a -ea -esa -v:fail,error,time,nopass -jdk:/opt/dragonwell8 -exclude:"/home/${USER}/actions-runner/_work/dragonwell8/dragonwell8/hotspot/test/ProblemList.txt" -exclude:"/home/${USER}/actions-runner/_work/dragonwell8/dragonwell8/jdk/test/ProblemList.txt" "${{ matrix.test }}"
- name: Check that all tests executed successfully
run: >
if [ -n "$(cat /home/${USER}/actions-runner/_work/dragonwell8/dragonwell8/JTreport/text/stats.txt | grep -E 'failed|error')" ]; then
cat /home/${USER}/actions-runner/_work/dragonwell8/dragonwell8/JTreport/newfailures.txt /home/${USER}/actions-runner/_work/dragonwell8/dragonwell8/JTreport/other_errors.txt;
exit 1 ;
fi

0 comments on commit c58c56a

Please sign in to comment.