Merge branch 'github-actions-update' into 1.16.4

This commit is contained in:
Florian Nücke
2021-01-19 00:43:04 +01:00
2 changed files with 23 additions and 6 deletions

View File

@@ -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/

View File

@@ -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.