mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-08-04 03:46:57 -04:00
Update GitHub Action (#1863)
This commit is contained in:
parent
3d88bc35bb
commit
b9d0cfc12a
8
.github/workflows/check-style.yml
vendored
8
.github/workflows/check-style.yml
vendored
@ -8,15 +8,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Checkout submodules
|
|
||||||
run: git submodule update --init --recursive
|
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
java-package: jdk+fx
|
java-package: 'jdk+fx'
|
||||||
- name: Check style main
|
- name: Check style main
|
||||||
run: ./gradlew checkstyleMain
|
run: ./gradlew checkstyleMain
|
||||||
- name: Check style test
|
- name: Check style test
|
||||||
|
8
.github/workflows/check-translations.yml
vendored
8
.github/workflows/check-translations.yml
vendored
@ -8,14 +8,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Checkout submodules
|
|
||||||
run: git submodule update --init --recursive
|
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
java-package: jdk+fx
|
java-package: 'jdk+fx'
|
||||||
- name: Check style test
|
- name: Check style test
|
||||||
run: ./gradlew checkTranslations
|
run: ./gradlew checkTranslations
|
||||||
|
2
.github/workflows/check-update.yml
vendored
2
.github/workflows/check-update.yml
vendored
@ -10,7 +10,7 @@ jobs:
|
|||||||
if: ${{ github.repository_owner == 'huanghongxun' }}
|
if: ${{ github.repository_owner == 'huanghongxun' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Fetch tags
|
- name: Fetch tags
|
||||||
run: git fetch --all --tags
|
run: git fetch --all --tags
|
||||||
- name: Install tools
|
- name: Install tools
|
||||||
|
10
.github/workflows/gradle.yml
vendored
10
.github/workflows/gradle.yml
vendored
@ -8,15 +8,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Checkout submodules
|
|
||||||
run: git submodule update --init --recursive
|
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
java-package: jdk+fx
|
java-package: 'jdk+fx'
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew build
|
run: ./gradlew build
|
||||||
env:
|
env:
|
||||||
@ -26,7 +24,7 @@ jobs:
|
|||||||
- name: Get short SHA
|
- name: Get short SHA
|
||||||
run: echo "SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV
|
run: echo "SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: HMCL-${{ env.SHORT_SHA }}
|
name: HMCL-${{ env.SHORT_SHA }}
|
||||||
path: HMCL/build/libs
|
path: HMCL/build/libs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user