Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Commit

Permalink
add basic check & builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mrshmllow committed Jul 7, 2024
1 parent 2e19714 commit c69d2e2
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: build
on:
workflow_dispatch:
push:
braches:
- main
- 1.20.0-1
- 1.20.2
- 1.20.4

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: cachix/install-nix-action@v27
- name: Flake Check
run: nix flake check --impure
build:
runs-on: ubuntu-latest
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
strategy:
matrix:
loader:
- fabric
- neoforge
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 21
# - name: Setup Gradle
# uses: gradle/actions/setup-gradle@v3
- name: Build
run: ./gradlew ${{ matrix.loader }}:build
- name: Upload Jar Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.BRANCH_NAME }}-${{ matrix.loader }}-${{ github.sha }}
path: |
${{ matrix.loader }}/build/libs
!${{ matrix.loader }}/build/libs/*-sources.jar
!${{ matrix.loader }}/build/libs/*-shadow.jar

0 comments on commit c69d2e2

Please sign in to comment.