aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ant.yml
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2021-04-18 18:54:46 +0200
committerRoel Spilker <r.spilker@gmail.com>2023-03-22 10:22:34 +0100
commit2c8a789d509ce0befa4757ab63f33aae585f6ae8 (patch)
treec9c27c3beee555ff7c6f3e449a392a0f76ecfc3b /.github/workflows/ant.yml
parent721430e92a337bc6c0a96155e51adb41b0d7959f (diff)
downloadlombok-2c8a789d509ce0befa4757ab63f33aae585f6ae8.tar.gz
lombok-2c8a789d509ce0befa4757ab63f33aae585f6ae8.tar.bz2
lombok-2c8a789d509ce0befa4757ab63f33aae585f6ae8.zip
Add tool specific commands
Diffstat (limited to '.github/workflows/ant.yml')
-rw-r--r--.github/workflows/ant.yml12
1 files changed, 9 insertions, 3 deletions
diff --git a/.github/workflows/ant.yml b/.github/workflows/ant.yml
index ba5d26b1..c5925356 100644
--- a/.github/workflows/ant.yml
+++ b/.github/workflows/ant.yml
@@ -108,8 +108,14 @@ jobs:
strategy:
matrix:
jdk: [8, 9, 10, 11, 12, 13, 16]
- tool: [maven, gradle, ant, bazel]
+ tool:
+ - {name: "maven", cmd: "mvn compile"}
+ - {name: "gradle", cmd: "gradle assemble"}
+ - {name: "ant", cmd: "ant dist"}
+ - {name: "bazel, cmd "bazel build //:ProjectRunner"}
fail-fast: false
+ env:
+ IMAGE_NAME: lombok-${{ matrix.tool.name }}-jdk${{ matrix.jdk }}
steps:
- name: Checkout
@@ -121,7 +127,7 @@ jobs:
- name: Build container
working-directory: ./docker
- run: docker build --build-arg jdk=${{ matrix.jdk }} -t lombok-${{ matrix.tool }}-jdk${{ matrix.jdk }} -f ${{ matrix.tool }}/Dockerfile .
+ run: docker build --build-arg jdk=${{ matrix.jdk }} -t $IMAGE_NAME -f ${{ matrix.tool.name }}/Dockerfile .
- name: Compile in container
- run: docker run --entrypoint="" -v $(pwd)/lombok.jar:/workspace/lombok.jar lombok-${{ matrix.tool }}-jdk${{ matrix.jdk }} /bin/bash -c "cd classpath; mvn compile" \ No newline at end of file
+ run: docker run --entrypoint="" -v $(pwd)/lombok.jar:/workspace/lombok.jar $IMAGE_NAME /bin/bash -c "cd classpath; ${{ matrix.tool.cmd }}" \ No newline at end of file