- name: Test
- on:
- push:
- branches: ['*']
- pull_request:
- branches: ['*']
- jobs:
- build:
- name: Build
- strategy:
- matrix:
- os:
- - 'ubuntu-latest'
- - 'macos-latest'
- - 'windows-latest'
- runs-on: ${{ matrix.os }}
- steps:
- - name: Checkout sources
- uses: actions/checkout@v4
- - name: Setup Java
- uses: actions/setup-java@v4
- with:
- distribution: 'temurin'
- java-version: 17
- - uses: actions-ecosystem/action-regex-match@v2
- id: branch-match
- with:
- text: ${{ github.ref }}
- regex: '^refs/heads/\d{4}\.\d$'
- - name: Setup Gradle
- uses: gradle/actions/setup-gradle@v4
- with:
- cache-read-only: ${{ github.ref != 'refs/heads/dev' && steps.branch-match.outputs.match != '' }}
- - name: Build
- run: ./gradlew build --stacktrace
ERROR:
Failed to get content for the change, error: Cannot find commit f4dec0b1d67cda83ca63c74d29724196e38a21e4 in repository (/data/teamcity_server/datadir/system/caches/git/git-1D628950.git, https://github.com/minecraft-dev/MinecraftDev.git#refs/heads/dev)