mirror of
https://github.com/Suiranoil/SkinRestorer.git
synced 2026-01-16 04:42:12 +00:00
update github build workflow
This commit is contained in:
44
.github/workflows/build.yml
vendored
44
.github/workflows/build.yml
vendored
@@ -1,33 +1,31 @@
|
|||||||
name: build
|
name: build
|
||||||
on: [pull_request, push]
|
on: [ pull_request, push ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
runs-on: ubuntu-latest
|
||||||
matrix:
|
|
||||||
java: [
|
|
||||||
21,
|
|
||||||
]
|
|
||||||
os: [ubuntu-22.04]
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: checkout repository
|
- uses: actions/checkout@v2
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: validate gradle wrapper
|
- uses: actions/setup-java@v4
|
||||||
uses: gradle/wrapper-validation-action@v1
|
|
||||||
- name: setup jdk ${{ matrix.java }}
|
|
||||||
uses: actions/setup-java@v3
|
|
||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java }}
|
distribution: temurin
|
||||||
distribution: 'microsoft'
|
java-version: 21
|
||||||
- name: make gradle wrapper executable
|
|
||||||
if: ${{ runner.os != 'Windows' }}
|
- name: Setup Gradle
|
||||||
|
uses: gradle/actions/setup-gradle@v3
|
||||||
|
with:
|
||||||
|
cache-read-only: false
|
||||||
|
|
||||||
|
- name: Change wrapper permissions
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
- name: build
|
|
||||||
|
- name: Run build with Gradle Wrapper
|
||||||
run: ./gradlew build
|
run: ./gradlew build
|
||||||
- name: capture build artifacts
|
|
||||||
if: ${{ runner.os == 'Linux' && matrix.java == '21' }}
|
- name: Upload built JAR
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Artifacts
|
name: skin-restorer-artifacts
|
||||||
path: build/libs/
|
path: build/libs
|
||||||
Reference in New Issue
Block a user