From 807f2b543f68f9370ef5a9cf686371d951116483 Mon Sep 17 00:00:00 2001 From: lucsoft Date: Mon, 11 Jan 2021 16:07:14 +0100 Subject: [PATCH 1/5] Make Aritfacts public --- .github/workflows/gradle.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 638a4ccb..eeb0f282 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -27,3 +27,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/ From 2fc841132bf71f710b4929d63e46e78e4dc043d5 Mon Sep 17 00:00:00 2001 From: lucsoft Date: Mon, 11 Jan 2021 16:17:48 +0100 Subject: [PATCH 2/5] Added a nightly badge This needs to be enabled manual in github actions (i cant change this with a pr) --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 660b5ccc..2de789a3 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # 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) + Yet another computer mod. Nothing is final. Many things will change. From 75f4ad42f3e2e1b67cd5f4b550c6d578366ecb02 Mon Sep 17 00:00:00 2001 From: lucsoft Date: Mon, 11 Jan 2021 16:25:04 +0100 Subject: [PATCH 3/5] Added Java 15 & Windows --- .github/workflows/gradle.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index eeb0f282..6389aeea 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -1,15 +1,22 @@ # 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 From ce15d338ebe9884325f59ccc71f7a5087f1d49ed Mon Sep 17 00:00:00 2001 From: lucsoft Date: Mon, 11 Jan 2021 17:11:21 +0100 Subject: [PATCH 4/5] Added a link to sedna builds https://github.com/fnuecke/oc2-sedna/pull/2 is required before this --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2de789a3..ff903e68 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ ![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. From b18510b34231b84e786d4e2e8f2e360f5a59a4e7 Mon Sep 17 00:00:00 2001 From: lucsoft Date: Mon, 11 Jan 2021 17:12:24 +0100 Subject: [PATCH 5/5] Fixed copy and paste error --- .github/workflows/gradle.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 6389aeea..2800728d 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -19,10 +19,10 @@ jobs: 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