diff --git a/.github/workflows/gradle-build.yml b/.github/workflows/gradle-build.yml new file mode 100644 index 00000000..e2d8bf0b --- /dev/null +++ b/.github/workflows/gradle-build.yml @@ -0,0 +1,33 @@ +name: Build with Gradle + +on: + push: + pull_request: + +jobs: + gradle-build: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Checkout source + uses: actions/checkout@v4 + - name: Validate Gradle Wrapper + uses: gradle/actions/wrapper-validation@v3 + - name: Setup Java 8 (Temurin) + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 8 + architecture: x64 + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + - name: Run build using Gradle Wrapper + run: ./gradlew build + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: artifacts-${{ matrix.os }} + path: build/libs/ThaumicAugmentation-*.jar + if-no-files-found: error diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 6b371263..00000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Java CI - -on: [push, pull_request] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - name: Set up CI workspace - run: ./gradlew setupCiWorkspace - - name: Run tests - run: ./gradlew test