diff options
author | Rawi01 <Rawi01@users.noreply.github.com> | 2021-04-18 18:54:46 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2023-03-22 10:22:34 +0100 |
commit | 2c8a789d509ce0befa4757ab63f33aae585f6ae8 (patch) | |
tree | c9c27c3beee555ff7c6f3e449a392a0f76ecfc3b | |
parent | 721430e92a337bc6c0a96155e51adb41b0d7959f (diff) | |
download | lombok-2c8a789d509ce0befa4757ab63f33aae585f6ae8.tar.gz lombok-2c8a789d509ce0befa4757ab63f33aae585f6ae8.tar.bz2 lombok-2c8a789d509ce0befa4757ab63f33aae585f6ae8.zip |
Add tool specific commands
-rw-r--r-- | .github/workflows/ant.yml | 12 |
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 |