Skip to content

Commit

Permalink
split build & pr workflows
Browse files Browse the repository at this point in the history
limit build concurrency
  • Loading branch information
HSGamer committed Feb 24, 2024
1 parent 570d8b2 commit 657d7c7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build & Check

on:
push:
branches: [ master ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Unshallow
run: git fetch --unshallow --quiet
- name: Build
run: mvn clean package
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Build & Check
name: Build PR

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

Expand Down

0 comments on commit 657d7c7

Please sign in to comment.