Skip to content

Commit

Permalink
Create ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MeAlam1 authored Aug 30, 2024
1 parent d44ffc2 commit c6c72fd
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI for Minecraft Mod

on:
pull_request:
branches:
- 1.20.4
push:
branches:
- 1.20.4

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for Gradle wrapper
run: chmod +x gradlew

- name: Run Build
run: ./gradlew build

- name: Run Client
run: ./gradlew runClient
continue-on-error: true

- name: Run Additional Tasks
run: |
./gradlew jar

0 comments on commit c6c72fd

Please sign in to comment.