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

Commit e29a688

Browse files
committed
add basic check & builds
1 parent 2e19714 commit e29a688

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/build.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: build
2+
on:
3+
workflow_dispatch:
4+
push:
5+
braches:
6+
- main
7+
- 1.20.0-1
8+
- 1.20.2
9+
- 1.20.4
10+
11+
jobs:
12+
check:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v3
17+
- uses: cachix/install-nix-action@v27
18+
- name: Flake Check
19+
run: nix flake check
20+
build:
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
loader:
25+
- fabric
26+
- neoforge
27+
steps:
28+
- name: Checkout repository
29+
uses: actions/checkout@v3
30+
- name: Setup Java
31+
uses: actions/setup-java@v4
32+
with:
33+
distribution: 'openjdk'
34+
java-version: 21
35+
# - name: Setup Gradle
36+
# uses: gradle/actions/setup-gradle@v3
37+
- name: Build
38+
run: ./gradlew ${{ matrix.loader }}:build

0 commit comments

Comments
 (0)