From cc2f70c8d1336f1d5fb274c0489cd9fe93391a1e Mon Sep 17 00:00:00 2001 From: Janne Valkealahti Date: Mon, 12 Jun 2023 12:57:56 +0100 Subject: [PATCH] Add ci boot workflow --- .github/workflows/ci-boot.yml | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/ci-boot.yml diff --git a/.github/workflows/ci-boot.yml b/.github/workflows/ci-boot.yml new file mode 100644 index 00000000..7334f833 --- /dev/null +++ b/.github/workflows/ci-boot.yml @@ -0,0 +1,41 @@ +name: CI Boot + +on: + workflow_dispatch: + +jobs: + + # build and test, then upload logs if failure + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + java: [1.8] + boot: [2.6.15, 2.7.0, 2.7.12] + fail-fast: false + + steps: + - uses: actions/checkout@v2 + - name: Setup JDK + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + - name: Build boot ${{ matrix.boot }} java ${{ matrix.java }} + run: ./gradlew clean build -PspringBootVersion=${{ matrix.boot }} + - name: Tar Build Logs + if: ${{ failure() }} + run: | + mkdir -p build + tar \ + -zc \ + --ignore-failed-read \ + --file build/buildlogs.tar.gz \ + */build/reports \ + */*/build/reports + - name: Upload Build Logs + if: ${{ failure() }} + uses: actions/upload-artifact@v2 + with: + name: buildlogs-${{ matrix.boot }}-${{ matrix.java }} + path: build/buildlogs.tar.gz