mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-08-03 20:16:16 -04:00
github: bump actions
This commit is contained in:
parent
af2cd52ace
commit
2407ed1191
24
.github/workflows/build.yml
vendored
24
.github/workflows/build.yml
vendored
@ -17,63 +17,63 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}-latest
|
runs-on: ${{ matrix.os }}-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: zulu
|
distribution: zulu
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
|
||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/gradle-build-action@v2
|
uses: gradle/gradle-build-action@v3
|
||||||
|
|
||||||
- name: Setup Gradle Dependencies Cache
|
- name: Setup Gradle Dependencies Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches
|
path: ~/.gradle/caches
|
||||||
key: ${{ matrix.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
|
key: ${{ matrix.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
|
||||||
|
|
||||||
|
|
||||||
- name: Setup Gradle Wrapper Cache
|
- name: Setup Gradle Wrapper Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/wrapper
|
path: ~/.gradle/wrapper
|
||||||
key: ${{ matrix.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
|
key: ${{ matrix.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
|
||||||
|
|
||||||
- name: Setup Gradle Wrapper Cache
|
- name: Setup Gradle Wrapper Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ./it
|
path: ./it
|
||||||
key: minosoft-assets
|
key: minosoft-assets
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: gradle/gradle-build-action@v2
|
uses: gradle/gradle-build-action@v3
|
||||||
with:
|
with:
|
||||||
arguments: assemble -Pminosoft.updates=true
|
arguments: assemble -Pminosoft.updates=true
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
uses: gradle/gradle-build-action@v2
|
uses: gradle/gradle-build-action@v3
|
||||||
with:
|
with:
|
||||||
arguments: check -Pminosoft.updates=true
|
arguments: check -Pminosoft.updates=true
|
||||||
|
|
||||||
- name: Package amd64
|
- name: Package amd64
|
||||||
uses: gradle/gradle-build-action@v2
|
uses: gradle/gradle-build-action@v3
|
||||||
with:
|
with:
|
||||||
arguments: fatJar -Pminosoft.updates=true
|
arguments: fatJar -Pminosoft.updates=true
|
||||||
- name: Upload amd64 build
|
- name: Upload amd64 build
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: 'minosoft-${{ matrix.os }}-amd64'
|
name: 'minosoft-${{ matrix.os }}-amd64'
|
||||||
path: build/libs/minosoft-fat-*-amd64-*.jar
|
path: build/libs/minosoft-fat-*-amd64-*.jar
|
||||||
|
|
||||||
- name: Package aarch64
|
- name: Package aarch64
|
||||||
if: ${{ !startsWith(matrix.os, 'windows') }}
|
if: ${{ !startsWith(matrix.os, 'windows') }}
|
||||||
uses: gradle/gradle-build-action@v2
|
uses: gradle/gradle-build-action@v3
|
||||||
with:
|
with:
|
||||||
arguments: fatJar -Parchitecture=aarch64 -Pminosoft.updates=true
|
arguments: fatJar -Parchitecture=aarch64 -Pminosoft.updates=true
|
||||||
- name: Upload aarch64 build
|
- name: Upload aarch64 build
|
||||||
if: ${{ !startsWith(matrix.os, 'windows') }}
|
if: ${{ !startsWith(matrix.os, 'windows') }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: 'minosoft-${{ matrix.os }}-aarch64'
|
name: 'minosoft-${{ matrix.os }}-aarch64'
|
||||||
path: build/libs/minosoft-fat-*-aarch64-*.jar
|
path: build/libs/minosoft-fat-*-aarch64-*.jar
|
||||||
|
Loading…
x
Reference in New Issue
Block a user