Update project configuration and enhance documentation #10
Workflow file for this run
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: Mod | |
| on: | |
| push: | |
| paths: | |
| - 'mod/**' | |
| - 'minecraft_script/versions/**' | |
| - '.github/workflows/mod.yml' | |
| pull_request: | |
| paths: | |
| - 'mod/**' | |
| - 'minecraft_script/versions/**' | |
| - '.github/workflows/mod.yml' | |
| jobs: | |
| build-matrix: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| profile: [1.21.2, 1.21.4, 1.21.5, 1.21.6, 1.21.7-8, 1.21.9-10, 1.21.11, 26.1] | |
| loader: [fabric, forge, neoforge] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| - uses: oven-sh/setup-bun@v2 | |
| - name: Install Spyglass bundle dependencies | |
| working-directory: mod/scripts | |
| run: bun install --frozen-lockfile | |
| - name: Apply version profile | |
| run: python mod/scripts/apply_version.py ${{ matrix.profile }} --loader ${{ matrix.loader }} | |
| - name: Build ${{ matrix.loader }} for ${{ matrix.profile }} | |
| working-directory: mod | |
| run: ./gradlew :${{ matrix.loader }}:build -Pmcs_profile=${{ matrix.profile }} -Penabled_platforms=${{ matrix.loader }} -x test |