From 6fb808466c8b0ef5b2bf014d803df56d5864112c Mon Sep 17 00:00:00 2001 From: rtm516 Date: Sun, 27 Jul 2025 23:47:31 +0100 Subject: [PATCH] Add PR build yml --- .github/workflows/pullrequest.yml | 48 +++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/pullrequest.yml diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml new file mode 100644 index 0000000..15abc0d --- /dev/null +++ b/.github/workflows/pullrequest.yml @@ -0,0 +1,48 @@ +name: Build Pull Request + +on: + workflow_dispatch: + push: + paths-ignore: + - '.github/ISSUE_TEMPLATE/*.yml' + - '.github/actions/build.yml' + - '.idea/copyright/*.xml' + - '.gitignore' + - 'LICENSE' + - 'README.md' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository and submodules + # See https://github.com/actions/checkout/commits + uses: actions/checkout@72f2cec99f417b1a1c5e2e88945068983b7965f9 + with: + submodules: recursive + + - name: Validate Gradle Wrapper + # See https://github.com/gradle/wrapper-validation-action/commits + uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 + + # See https://github.com/actions/setup-java/commits + - uses: actions/setup-java@4075bfc1b51bf22876335ae1cd589602d60d8758 + with: + java-version: 17 + distribution: temurin + + - name: Build + # See https://github.com/gradle/gradle-build-action/commits + uses: gradle/gradle-build-action@3bfe3a46584a206fb8361cdedd0647b0c4204232 + with: + arguments: build + gradle-home-cache-cleanup: true + + - name: Archive artifacts (Boostrap) + # See https://github.com/actions/upload-artifact/commits + uses: actions/upload-artifact@6027e3dd177782cd8ab9af838c04fd81a07f1d47 + if: success() + with: + name: PackConverter CLI + path: bootstrap/build/libs/PackConverter.jar + if-no-files-found: error