|
48 | 48 | env: |
49 | 49 | IS_JAVA_8: ${{ matrix.java-version == 8 }} |
50 | 50 |
|
51 | | - build: |
| 51 | + build-base: |
52 | 52 | runs-on: ubuntu-latest |
53 | 53 | steps: |
54 | 54 | - uses: actions/checkout@v5 |
|
60 | 60 | distribution: corretto |
61 | 61 | cache: maven |
62 | 62 |
|
63 | | - - name: Set up QEMU |
64 | | - uses: docker/setup-qemu-action@v3 |
65 | | - |
66 | | - - name: Set up Docker Buildx |
67 | | - uses: docker/setup-buildx-action@v3 |
68 | | - with: |
69 | | - install: true |
70 | | - |
71 | | - - name: Available buildx platforms |
72 | | - run: echo ${{ steps.buildx.outputs.platforms }} |
73 | | - |
74 | 63 | - name: Build and install core dependency locally |
75 | 64 | working-directory: ./aws-lambda-java-core |
76 | 65 | run: mvn clean install |
|
79 | 68 | working-directory: ./aws-lambda-java-serialization |
80 | 69 | run: mvn clean install |
81 | 70 |
|
82 | | - - name: Test Runtime Interface Client xplatform build - Run 'build' target |
| 71 | + - name: Build and test RIC |
83 | 72 | working-directory: ./aws-lambda-java-runtime-interface-client |
84 | | - run: make build |
85 | | - env: |
86 | | - IS_JAVA_8: true |
| 73 | + run: mvn clean install -DargLineForReflectionTestOnly="" |
87 | 74 |
|
88 | 75 | - name: Save the built jar |
89 | 76 | uses: actions/upload-artifact@v4 |
|
96 | 83 | uses: codecov/codecov-action@v5 |
97 | 84 | env: |
98 | 85 | CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
| 86 | + |
| 87 | + build-native: |
| 88 | + needs: build-base |
| 89 | + runs-on: ubuntu-latest |
| 90 | + strategy: |
| 91 | + matrix: |
| 92 | + profile: [linux-x86_64, linux_musl-x86_64, linux-aarch64, linux_musl-aarch64] |
| 93 | + steps: |
| 94 | + - uses: actions/checkout@v5 |
| 95 | + |
| 96 | + - name: Set up JDK 1.8 |
| 97 | + uses: actions/setup-java@v4 |
| 98 | + with: |
| 99 | + java-version: 8 |
| 100 | + distribution: corretto |
| 101 | + cache: maven |
| 102 | + |
| 103 | + - name: Set up QEMU |
| 104 | + uses: docker/setup-qemu-action@v3 |
| 105 | + |
| 106 | + - name: Set up Docker Buildx |
| 107 | + uses: docker/setup-buildx-action@v3 |
| 108 | + with: |
| 109 | + install: true |
| 110 | + |
| 111 | + - name: Build and install core dependency locally |
| 112 | + working-directory: ./aws-lambda-java-core |
| 113 | + run: mvn clean install |
| 114 | + |
| 115 | + - name: Build and install serialization dependency locally |
| 116 | + working-directory: ./aws-lambda-java-serialization |
| 117 | + run: mvn clean install |
| 118 | + |
| 119 | + - name: Build native - ${{ matrix.profile }} |
| 120 | + working-directory: ./aws-lambda-java-runtime-interface-client |
| 121 | + run: mvn install -P ${{ matrix.profile }} -DargLineForReflectionTestOnly="" |
0 commit comments