mirror of
https://github.com/ViaVersion/ViaForge.git
synced 2024-12-22 16:48:15 +01:00
Update dependencies on actions (#63)
* Update dependencies on actions. * Ensure the JDK is on temurin. * [ci skip] Uppercase the word "build".
This commit is contained in:
parent
548e75d279
commit
82fff93c49
26
.github/workflows/main.yml
vendored
26
.github/workflows/main.yml
vendored
@ -5,28 +5,26 @@ jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
# Use these Java versions
|
||||
java: [
|
||||
8
|
||||
]
|
||||
os: [ubuntu-latest]
|
||||
java: ["8"]
|
||||
os: ["ubuntu-22.04"]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: checkout repository
|
||||
uses: actions/checkout@v2
|
||||
- name: validate gradle wrapper
|
||||
- name: Checkout the repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Validate Gradle wrapper
|
||||
uses: gradle/wrapper-validation-action@v1
|
||||
- name: setup jdk ${{ matrix.java }}
|
||||
uses: actions/setup-java@v1
|
||||
- name: Setup JDK ${{ matrix.java }}
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: ${{ matrix.java }}
|
||||
- name: make gradle wrapper executable
|
||||
distribution: 'temurin'
|
||||
- name: Make Gradle wrapper runnable on Unix
|
||||
run: chmod +x ./gradlew
|
||||
- name: build
|
||||
- name: Build
|
||||
run: ./gradlew build
|
||||
- name: capture build artifacts
|
||||
- name: Upload Build Artifacts
|
||||
if: ${{ runner.os == 'Linux' && matrix.java == '8' }}
|
||||
uses: actions/upload-artifact@v2
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ViaForge-1.12.2
|
||||
path: build/libs/
|
||||
|
Loading…
Reference in New Issue
Block a user