26.1-snapshot-6 #961
This file contains hidden or 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, pull_request] | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| java: [25] | |
| os: [ubuntu-latest] | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| MAVEN_URL: ${{secrets.SNAPSHOT_MAVEN_URL}} | |
| MAVEN_USERNAME: ${{secrets.MAVEN_USERNAME}} | |
| MAVEN_PASSWORD: ${{secrets.MAVEN_PASSWORD}} | |
| steps: | |
| - name: Cache Dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/loom-cache | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Checkout cloth-config | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: EthanRStokes/cloth-config | |
| path: cloth-config | |
| - name: Setup JDK ${{ matrix.java }} | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'zulu' | |
| java-version: ${{ matrix.java }} | |
| architecture: x64 | |
| - name: Validate Gradle Wrapper | |
| uses: gradle/actions/wrapper-validation@v5 | |
| - name: Make Gradle Wrapper Executable | |
| if: ${{ runner.os != 'Windows' }} | |
| run: chmod +x ./gradlew | |
| - name: Build | |
| run: ./gradlew build -PuseThirdPartyMods=false | |
| - name: Extract current branch name | |
| shell: bash | |
| # bash pattern expansion to grab branch name without slashes | |
| run: ref="${GITHUB_REF#refs/heads/}" && echo "::set-output name=branch::${ref////-}" | |
| id: ref | |
| - name: Capture Build Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ConfigurableEverything-Artifacts-${{ steps.ref.outputs.branch }} | |
| path: build/libs/ |