Skip to content

Commit 718be43

Browse files
committed
chore: fix parallelism in library compilation
1 parent 76a5fd6 commit 718be43

File tree

2 files changed

+12
-54
lines changed

2 files changed

+12
-54
lines changed

.github/workflows/verify.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ jobs:
1919
path: google-api-java-client-services
2020
# we install the moreutils `parallel` command
2121
- run: sudo apt-get install moreutils
22-
- working-directory: google-api-java-client-services
23-
run: bash .github/workflows/verify_compilation.sh
22+
- working-directory: google-api-java-client-services/clients
23+
run: |
24+
find . -name pom.xml -not -path '*/target/*' \
25+
| cut -d'/' -f2-4 \
26+
| sed 's/\(.*\)/<module>\1<\/module>/' \
27+
| (echo "<project><modelVersion>4.0.0</modelVersion><groupId>temp</groupId><artifactId>temp</artifactId><version>1.0</version><packaging>pom</packaging><modules>"; cat -; echo "</modules></project>") > pom.xml
28+
29+
mvn clean compile -Dmaven.testSkip=true -fae --fail-at-end \
30+
|& grep -E "^\[ERROR\] Failed to execute goal" \
31+
| awk -F'module ' '{print $2}' \
32+
| awk -F'\[ERROR\]' '{print $1}' \
33+
| sort -u
2434

.github/workflows/verify_compilation.sh

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)