Merge remote-tracking branch 'origin/main' #28
This file contains 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: | |
- "*" | |
paths-ignore: | |
- ".gitignore" | |
pull_request: | |
branches: | |
- "*" | |
paths-ignore: | |
- ".gitignore" | |
workflow_dispatch: | |
permissions: write-all | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: "Build and test" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: temurin | |
cache: gradle | |
- name: Setup gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Build with Gradle | |
run: ./gradlew build -x test --stacktrace | |
- uses: actions/upload-artifact@v3 | |
name: Upload Odin | |
with: | |
name: "Odin Build" | |
path: odin/build/libs/*.jar | |
- uses: actions/upload-artifact@v3 | |
name: Upload OdinClient | |
with: | |
name: "Odinclient Build" | |
path: odinclient/build/libs/*.jar | |
- name: Test with Gradle | |
run: ./gradlew test | |
- uses: actions/upload-artifact@v3 | |
name: "Upload test report" | |
if: ${{ !cancelled() }} | |
with: | |
name: "Test Results" | |
path: build/reports/tests/test/ |