Skip to content

Commit 702725a

Browse files
committed
Musl aarch64
1 parent 79d2e51 commit 702725a

1 file changed

Lines changed: 80 additions & 7 deletions

File tree

.github/workflows/test_workflow.yml

Lines changed: 80 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -368,11 +368,11 @@ jobs:
368368
name: failures
369369
path: failures_glibc-oracle8-${{ matrix.config }}.txt
370370

371-
test-linux-musl:
371+
test-linux-musl-amd64:
372372
strategy:
373373
fail-fast: false
374374
matrix:
375-
java_version: [ 8u412+9, 11.0.23+12, 17.0.11+12, 21.0.3+12, 22.0.1+12 ]
375+
java_version: [ 8u432+7, 11.0.25+11, 17.0.13+12, 21.0.5+11, 23.0.1+13 ]
376376
config: ${{ fromJson(inputs.configuration) }}
377377
runs-on: ubuntu-latest
378378
timeout-minutes: 180
@@ -386,7 +386,7 @@ jobs:
386386
run: apk update && apk add curl moreutils wget hexdump linux-headers bash make g++ clang git cppcheck jq cmake gtest-dev gmock >/dev/null
387387
- name: Prepare build JDK
388388
run: |
389-
wget -nv https://download.bell-sw.com/java/11.0.18+10/bellsoft-jdk11.0.18+10-linux-x64-musl.tar.gz -O jdk.tar.gz
389+
wget -nv https://download.bell-sw.com/java/11.0.25+11/bellsoft-jdk11.0.25+11-linux-x64-musl.tar.gz -O jdk.tar.gz
390390
tar xzf *.tar.gz
391391
find . -type d -name 'jdk*' -maxdepth 1 | xargs -I {} mv {} build_jdk
392392
- name: Prepare JDK ${{ matrix.java_version }}
@@ -416,14 +416,87 @@ jobs:
416416
}')
417417
./gradlew :ddprof-test:test${{ matrix.config }}
418418
if [ $? -ne 0 ]; then
419-
echo "musl-${{ matrix.java_version }}-${{ matrix.config }}" >> failures_musl-${{ matrix.java_version }}-${{ matrix.config }}.txt
419+
echo "musl-${{ matrix.java_version }}-${{ matrix.config }}-amd64" >> failures_musl-${{ matrix.java_version }}-${{ matrix.config }}-amd64.txt
420+
exit 1
421+
fi
422+
- name: Upload logs
423+
uses: actions/upload-artifact@v3
424+
if: always()
425+
with:
426+
name: reports-linux-musl-${{ matrix.java_version }}-amd64.zip
427+
path: |
428+
/tmp/hs_err*
429+
ddprof-test/hs_err_*
430+
ddprof-test/build/reports/tests
431+
ddprof-lib/src/test/build/Testing/Temporary/LastTest.log
432+
ddprof-lib/build/tmp/compileReleaseLinuxCpp/output.txt
433+
- uses: actions/upload-artifact@v3
434+
if: success()
435+
with:
436+
name: musl-${{ matrix.java_version }}-${{ matrix.config }}-amd64
437+
path: build/
438+
- uses: actions/upload-artifact@v3
439+
if: failure()
440+
with:
441+
name: failures
442+
path: failures_musl-${{ matrix.java_version }}-${{ matrix.config }}-amd64.txt
443+
444+
test-linux-musl-aarch64:
445+
strategy:
446+
fail-fast: false
447+
matrix:
448+
java_version: [ 8u432+7, 11.0.25+11, 17.0.13+12, 21.0.5+11, 23.0.1+13 ]
449+
config: ${{ fromJson(inputs.configuration) }}
450+
runs-on: ubuntu-latest
451+
timeout-minutes: 180
452+
453+
container:
454+
image: "alpine:3.14"
455+
options: --cpus 2
456+
steps:
457+
- uses: actions/checkout@v3
458+
- name: Setup OS
459+
run: apk update && apk add curl moreutils wget hexdump linux-headers bash make clang git cppcheck jq cmake >/dev/null
460+
- name: Prepare build JDK
461+
run: |
462+
wget -nv https://download.bell-sw.com/java/11.0.25+11/bellsoft-jdk11.0.25+11-linux-aarch64-musl.tar.gz -O jdk.tar.gz
463+
tar xzf *.tar.gz
464+
find . -type d -name 'jdk*' -maxdepth 1 | xargs -I {} mv {} build_jdk
465+
- name: Prepare JDK ${{ matrix.java_version }}
466+
run: |
467+
wget -nv https://download.bell-sw.com/java/${{ matrix.java_version }}/bellsoft-jdk${{ matrix.java_version }}-linux-aarch64-musl.tar.gz -O jdk.tar.gz
468+
tar xzf *.tar.gz
469+
find . -type d -name 'jdk*' -maxdepth 1 | xargs -I {} mv {} test_jdk
470+
- name: Test
471+
run: |
472+
set +e
473+
export JAVA_HOME=$(pwd)/build_jdk
474+
export PATH=$JAVA_HOME/bin:$PATH
475+
export TEST_COMMIT=${{ github.sha }}
476+
export TEST_CONFIGURATION=musl/${{ matrix.java_version }}
477+
export LIBC=musl
478+
export JAVA_TEST_HOME=$(pwd)/test_jdk
479+
export SANITIZER=${{ matrix.config }}
480+
export JAVA_VERSION=$(${JAVA_TEST_HOME}/bin/java -version 2>&1 | awk -F '"' '/version/ {
481+
split($2, v, "[._]");
482+
if (v[1] == "1") {
483+
# Java 8 or older: Include major, minor, and update
484+
printf "%s.%s.%s\n", v[2], v[3], v[4]
485+
} else {
486+
# Java 9 or newer: Major, minor, and patch
487+
printf "%s.%s.%s\n", v[1], v[2], v[3]
488+
}
489+
}')
490+
./gradlew :ddprof-test:test${{ matrix.config }}
491+
if [ $? -ne 0 ]; then
492+
echo "musl-${{ matrix.java_version }}-${{ matrix.config }}-aarch64" >> failures_musl-${{ matrix.java_version }}-${{ matrix.config }}-aarch64.txt
420493
exit 1
421494
fi
422495
- name: Upload logs
423496
uses: actions/upload-artifact@v3
424497
if: always()
425498
with:
426-
name: reports-linux-musl-${{ matrix.java_version }}.zip
499+
name: reports-linux-musl-${{ matrix.java_version }}-aarch64.zip
427500
path: |
428501
/tmp/hs_err*
429502
ddprof-test/hs_err_*
@@ -433,13 +506,13 @@ jobs:
433506
- uses: actions/upload-artifact@v3
434507
if: success()
435508
with:
436-
name: x64-musl-${{ matrix.java_version }}-${{ matrix.config }}
509+
name: musl-${{ matrix.java_version }}-${{ matrix.config }}-aarch64
437510
path: build/
438511
- uses: actions/upload-artifact@v3
439512
if: failure()
440513
with:
441514
name: failures
442-
path: failures_musl-${{ matrix.java_version }}-${{ matrix.config }}.txt
515+
path: failures_musl-${{ matrix.java_version }}-${{ matrix.config }}-aarch64.txt
443516

444517
test-linux-glibc-zing-amd64:
445518
strategy:

0 commit comments

Comments
 (0)