Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,24 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
name: Build CI with different platforms/configs

on:
'on':
push:
branches:
- 'master'
pull_request:
branches:
- 'master'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will help stop the older build if PR is updated let's say after 5 min

cancel-in-progress: true

permissions:
contents: read

jobs:
build:
strategy:
Expand All @@ -31,8 +39,12 @@ jobs:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
java-version: ${{ matrix.java-version }}
- run: mvn clean install -DskipTests -Dmaven.javadoc.skip=true
distribution: 'temurin'
- name: Build with Maven
run: >
mvn --batch-mode --no-transfer-progress clean install
-DskipTests -Dmaven.javadoc.skip=true