diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 638a4ccb..2800728d 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -1,21 +1,28 @@ # This workflow will build a Java project with Gradle # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle -name: Java CI with Gradle +name: build on: [pull_request, push] jobs: build: - - runs-on: ubuntu-latest - + strategy: + matrix: + # Use these Java versions + java: [ + 1.8, # Minimum supported by Minecraft + 15 # Latest version + ] + # and run on both Linux and Windows + os: [ubuntu-latest, windows-latest] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 + - name: Set up JDK ${{ matrix.java }} uses: actions/setup-java@v1 with: - java-version: 1.8 + java-version: ${{ matrix.java }} - name: Grant execute permission for gradlew run: chmod +x gradlew - uses: actions/cache@v2 @@ -27,3 +34,9 @@ jobs: restore-keys: ${{ runner.os }}-gradle- - name: Build with Gradle run: ./gradlew build + - name: capture build artifacts + if: ${{ runner.os == 'Linux' && matrix.java == '1.8' }} + uses: actions/upload-artifact@v2 + with: + name: Artifacts + path: build/libs/ diff --git a/README.md b/README.md index 660b5ccc..ff903e68 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # OpenComputers II [Working Title] +![build](https://github.com/fnuecke/oc2/workflows/build/badge.svg) +[![nightly](https://img.shields.io/badge/Builds-nightly-blue)](https://nightly.link/fnuecke/oc2/workflows/build/1.16/Artifacts.zip) +[![sedna](https://img.shields.io/badge/Requires-OC2%20Sedna-red)](https://nightly.link/fnuecke/oc2-sedna/workflows/build/1.16/Artifacts.zip) + Yet another computer mod. Nothing is final. Many things will change.