Merge pull request #12 from AvionBlock/dev/v2 #17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| concurrency: | |
| group: build-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: "21" | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Make gradlew executable | |
| run: chmod +x gradlew | |
| - name: Build with Gradle | |
| run: ./gradlew clean build --no-daemon | |
| - name: Collect release artifacts | |
| run: | | |
| mkdir -p dist | |
| find modules -path "*/build/libs/*.jar" \ | |
| ! -name "*-sources.jar" \ | |
| ! -name "*-thin.jar" \ | |
| ! -path "*/core/build/libs/*" \ | |
| -exec cp {} dist/ \; | |
| - name: Archive artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: geyservoice-build | |
| path: dist/*.jar | |
| if-no-files-found: error |