Skip to content

Commit

Permalink
ci: tidy up build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
getchoo committed Jul 31, 2024
1 parent 9380896 commit 4c4e5e0
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,23 @@ name: CI
on:
push:
branches: [main]
paths:
- "src/**"
- "gradle/**"
- "**.gradle"
- "gradlew*"
- "gradle.properties"
tags-ignore:
- "**"

pull_request:
paths:
- "src/**"
- "gradle/**"
- "**.gradle"
- "gradlew*"
- "gradle.properties"

workflow_dispatch:
workflow_call:

Expand All @@ -20,11 +34,8 @@ jobs:

strategy:
matrix:
# Use these Java versions
java: [
21, # Current Java LTS & minimum supported by Minecraft
]
# and run on both Linux and Windows
java:
- 21 # Current Java LTS & minimum supported by Minecraft
os: [ubuntu-latest, windows-latest]

runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 4c4e5e0

Please sign in to comment.