Skip to content

Commit 0ca79cd

Browse files
author
Davide Melfi
committed
chore: parallelizing multiple builds
1 parent ad53eb0 commit 0ca79cd

File tree

1 file changed

+39
-16
lines changed

1 file changed

+39
-16
lines changed

.github/workflows/runtime-interface-client_pr.yml

Lines changed: 39 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
env:
4949
IS_JAVA_8: ${{ matrix.java-version == 8 }}
5050

51-
build:
51+
build-base:
5252
runs-on: ubuntu-latest
5353
steps:
5454
- uses: actions/checkout@v5
@@ -60,17 +60,6 @@ jobs:
6060
distribution: corretto
6161
cache: maven
6262

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-
7463
- name: Build and install core dependency locally
7564
working-directory: ./aws-lambda-java-core
7665
run: mvn clean install
@@ -79,11 +68,9 @@ jobs:
7968
working-directory: ./aws-lambda-java-serialization
8069
run: mvn clean install
8170

82-
- name: Test Runtime Interface Client xplatform build - Run 'build' target
71+
- name: Build and test RIC
8372
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=""
8774

8875
- name: Save the built jar
8976
uses: actions/upload-artifact@v4
@@ -96,3 +83,39 @@ jobs:
9683
uses: codecov/codecov-action@v5
9784
env:
9885
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

Comments
 (0)