66 pull_request :
77 branches :
88 - " *"
9- env :
10- ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION : true
119
1210jobs :
1311 Get-CI-Image-Tag :
@@ -23,22 +21,31 @@ jobs:
2321 - 21
2422 - 23
2523 name : Build and Test
26- runs-on : ubuntu-latest
24+ strategy :
25+ matrix :
26+ os :
27+ - ubuntu-24.04-arm # arm64-preview
28+ - ubuntu-24.04 # x64
29+ runs-on : ${{ matrix.os }}
2730 container :
2831 # using the same image which is used by opensearch-build team to build the OpenSearch Distribution
2932 # this image tag is subject to change as more dependencies and updates will arrive over time
3033 image : ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }}
3134 # need to switch to root so that github actions can install runner binary on container without permission issues.
32- options : --user root
35+ options : ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-options }}
3336
3437 steps :
38+ - name : Run start commands
39+ run : ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-command }}
40+
3541 - name : Checkout
36- uses : actions/checkout@v2
42+ uses : actions/checkout@v4
3743
3844 - name : Setup Java ${{ matrix.java }}
39- uses : actions/setup-java@v1
45+ uses : actions/setup-java@v4
4046 with :
4147 java-version : ${{ matrix.java }}
48+ distribution : ' temurin'
4249
4350 - name : Build and Test
4451 run : |
@@ -62,12 +69,13 @@ jobs:
6269
6370 steps :
6471 - name : Checkout
65- uses : actions/checkout@v2
72+ uses : actions/checkout@v4
6673
6774 - name : Setup Java ${{ matrix.java }}
68- uses : actions/setup-java@v1
75+ uses : actions/setup-java@v4
6976 with :
7077 java-version : ${{ matrix.java }}
78+ distribution : ' temurin'
7179
7280 - name : Build and Test
7381 run : |
0 commit comments