diff --git a/.cirrus.yml b/.cirrus.yml deleted file mode 100644 index 5c9020b2..00000000 --- a/.cirrus.yml +++ /dev/null @@ -1,7 +0,0 @@ -container: - image: maven:3.9.4-eclipse-temurin-11 - -build_task: - maven_cache: - folder: ~/.m2/repository - build_script: mvn clean package diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..709f8d92 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,38 @@ +name: Build +on: + push: + branches: + - 10.x + pull_request: + types: [opened, synchronize, reopened] + merge_group: + types: [checks_requested] + +permissions: + id-token: write + contents: write + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + build: + name: Build + runs-on: github-ubuntu-latest-s + timeout-minutes: 60 + steps: + - name: Check out repository code + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + with: + fetch-depth: 0 + + - name: Setup JDK 11 + uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + + - name: Build with Maven + run: mvn clean package