2024-10-09 20:55:35 +01:00
|
|
|
name: Build Project
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main # Change this to your preferred branch
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set up JDK
|
|
|
|
uses: actions/setup-java@v2
|
|
|
|
with:
|
2024-10-09 20:58:55 +01:00
|
|
|
distribution: 'temurin'
|
2024-10-09 20:55:35 +01:00
|
|
|
java-version: '16' # Change to '8' for Java 8
|
|
|
|
|
|
|
|
- name: Install BusyBox and 7z
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y busybox p7zip-full
|
|
|
|
|
|
|
|
- name: Install Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: '1.20' # Specify the Go version you need
|
|
|
|
|
|
|
|
- name: Update Packwiz
|
|
|
|
run: make update-packwiz
|
|
|
|
|
|
|
|
- name: Make Modpack
|
|
|
|
run: make preClean multimc curseforge modrinth postClean
|