Skip to content

Add CI workflows for master (1.18) and until1.12.2 (1.12) branches#2

Merged
KisaragiEffective merged 7 commits intomasterfrom
copilot/enable-ci-on-branches
Jan 19, 2026
Merged

Add CI workflows for master (1.18) and until1.12.2 (1.12) branches#2
KisaragiEffective merged 7 commits intomasterfrom
copilot/enable-ci-on-branches

Conversation

Copy link
Copy Markdown

Copilot AI commented Jan 19, 2026

Enables GitHub Actions CI on both active branches. Master (1.18) requires multi-platform native library builds; 1.12 branch is simpler Forge-only.

Changes

.github/workflows/build-1.18.yml

  • Matrix strategy for Linux/macOS/Windows builds on explicit runners (ubuntu-22.04, macos-13, windows-2022)
  • Matrix parameters: os, platform, build_script, gradle_cmd, build_shell, gradle_shell
  • Conditional native deps install, platform-aware chmod
  • Builds native libs → Forge mod → Fabric mod → upload artifacts
  • JDK 17, permissions: contents: read

.github/workflows/build-1.12.yml

  • Single ubuntu-22.04 runner, JDK 8
  • Uses gradle build per branch README
  • Outputs to build/libs/*.jar
  • Permissions: contents: read

.gitignore

  • Added !.github to whitelist (root has /* deny-all pattern)

Matrix Example

matrix:
  include:
    - os: ubuntu-22.04
      platform: linux
      build_shell: bash
      gradle_shell: bash
    - os: windows-2022
      platform: windows
      build_shell: msys2 {0}
      gradle_shell: cmd

Eliminates duplicate conditional steps - shell types parameterized, single unified step per operation.

Original prompt

This section details on the original issue you should resolve

<issue_title>Enable CI on both 1.12 and 1.18 branches</issue_title>
<issue_description></issue_description>

<agent_instructions>1.18 branch means the master branch</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 6 commits January 19, 2026 17:18
Co-authored-by: KisaragiEffective <48310258+KisaragiEffective@users.noreply.github.com>
Co-authored-by: KisaragiEffective <48310258+KisaragiEffective@users.noreply.github.com>
Co-authored-by: KisaragiEffective <48310258+KisaragiEffective@users.noreply.github.com>
Co-authored-by: KisaragiEffective <48310258+KisaragiEffective@users.noreply.github.com>
Co-authored-by: KisaragiEffective <48310258+KisaragiEffective@users.noreply.github.com>
Co-authored-by: KisaragiEffective <48310258+KisaragiEffective@users.noreply.github.com>
Copilot AI changed the title [WIP] Enable CI on both 1.12 and 1.18 branches Add CI workflows for master (1.18) and until1.12.2 (1.12) branches Jan 19, 2026
@KisaragiEffective KisaragiEffective marked this pull request as ready for review January 19, 2026 17:34
@KisaragiEffective KisaragiEffective merged commit d791e10 into master Jan 19, 2026
@KisaragiEffective KisaragiEffective deleted the copilot/enable-ci-on-branches branch January 19, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable CI on both 1.12 and 1.18 branches

2 participants