Update Crowdin configuration file #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
types: [ opened, synchronize, reopened ] | |
jobs: | |
validate-gradle: | |
name: "Validate Gradle wrapper" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
submodules: true # Clone with vs-core submodule | |
- uses: gradle/wrapper-validation-action@v1 | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
submodules: true # Clone with vs-core submodule | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Cache Gradle packages | |
uses: actions/cache@v1 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
restore-keys: ${{ runner.os }}-gradle | |
- name: Build and analyze | |
run: ./gradlew build --info | |
- name: Attach Fabric compilation artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: fabric-build-libs | |
path: fabric/build/libs | |
- name: Attach Forge compilation artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: forge-build-libs | |
path: forge/build/libs |