Skip to content

ci: enable GHA

ci: enable GHA #1

Workflow file for this run

name: build
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: setup jdk 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'microsoft'
- name: setup project
run: |
git config --global user.email "no-reply@github.com"
git config --global user.name "Github Actions"
./build.sh up
./build.sh patch
- name: build
run: |
cd C2ME-fabric-patched
./gradlew clean build
- name: capture build artifacts
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: |
C2ME-fabric-patched/build/libs/