mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-02-09 11:45:01 +01:00
Update CI
This commit is contained in:
parent
b04fc0666c
commit
a3093a8c63
1 changed files with 6 additions and 5 deletions
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
@ -13,11 +13,11 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Validate Gradle Wrapper
|
- name: Validate Gradle Wrapper
|
||||||
uses: gradle/wrapper-validation-action@v1
|
uses: gradle/wrapper-validation-action@v3
|
||||||
- name: Gradle Cache
|
- name: Gradle Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.gradle/caches
|
~/.gradle/caches
|
||||||
|
@ -26,8 +26,9 @@ jobs:
|
||||||
build/
|
build/
|
||||||
key: ${{ runner.os }}-jdk${{ matrix.java }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle.properties', '**/gradle-wrapper.properties', '.github/workflows/build.yml') }}
|
key: ${{ runner.os }}-jdk${{ matrix.java }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle.properties', '**/gradle-wrapper.properties', '.github/workflows/build.yml') }}
|
||||||
- name: Setup JDK ${{ matrix.java }}
|
- name: Setup JDK ${{ matrix.java }}
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
- name: Make Gradle Wrapper Executable
|
- name: Make Gradle Wrapper Executable
|
||||||
if: ${{ runner.os != 'Windows' }}
|
if: ${{ runner.os != 'Windows' }}
|
||||||
|
@ -37,7 +38,7 @@ jobs:
|
||||||
run: ./gradlew publish --no-daemon
|
run: ./gradlew publish --no-daemon
|
||||||
- name: Capture Build Artifacts
|
- name: Capture Build Artifacts
|
||||||
if: ${{ runner.os == 'Linux' && matrix.java == '17' }}
|
if: ${{ runner.os == 'Linux' && matrix.java == '17' }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Artifacts
|
name: Artifacts
|
||||||
path: build/libs/
|
path: build/libs/
|
||||||
|
|
Loading…
Reference in a new issue