Skip to content

Commit

Permalink
Split testing and distJar steps in CI, do not include JFX in distJar
Browse files Browse the repository at this point in the history
  • Loading branch information
Col-E committed Sep 25, 2023
1 parent ec58db3 commit 8672419
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ jobs:
# So we have a dummy step here just to initialize it.
- name: Download Gradle wrapper
run: ./gradlew --version
- name: Run build
run: ./gradlew build
# Run the tests and upload results/coverage
- name: Run tests
run: ./gradlew test
- name: Upload test coverage to CodeCov.io
uses: codecov/codecov-action@v3
env:
Expand All @@ -54,12 +55,15 @@ jobs:
path: |
**/TEST-*
**/hs_err_pid*
- name: Upload build artifacts
# Build the distribution jar and upload it, without bundling JavaFX in the jar
- name: Create distribution jar
run: ./gradlew build -x test -Dskip.jfx.bundle=true
- name: Upload distribution jar
if: always()
uses: actions/upload-artifact@v3
with:
name: snapshot-build
retention-days: 21
retention-days: 30
path: |
recaf-ui/build/libs/recaf-ui-*-all.jar
Expand Down

0 comments on commit 8672419

Please sign in to comment.