Skip to content

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 a26711b commit 021a3c3
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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
build:
runs-on: ubuntu-latest
strategy:
matrix:
loader:
- fabric
- neoforge
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'openjdk'
java-version: 21
# - name: Setup Gradle
# uses: gradle/actions/setup-gradle@v3
- name: Build
run: ./gradlew ${{ matrix.loader }}:build

0 comments on commit 021a3c3

Please sign in to comment.