Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
[*.{gradle,mapping}]
[*.{gradle,mapping,unpick}]
indent_style = tab

[*.java]
indent_style = tab
ij_continuation_indent_size = 8
ij_java_imports_layout = $*,|,java.**,|,javax.**,|,*,|,net.fabricmc.**
39 changes: 32 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,40 @@
name: Build
on: [push, pull_request]
on:
push:
branches:
- robustum
pull_request:
branches:
- robustum
jobs:
build:
strategy:
matrix:
java: [8-jdk, 11-jdk, 15-jdk]
runs-on: ubuntu-20.04
java: [21-jdk]
runs-on: ubuntu-24.04
container:
image: openjdk:${{ matrix.java }}
image: eclipse-temurin:${{ matrix.java }}
options: --user root
steps:
- uses: actions/checkout@v1
- uses: gradle/wrapper-validation-action@v1
- run: ./gradlew build javadocJar checkMappings mapNamedJar --stacktrace
- uses: actions/checkout@v4
- run: ./gradlew build javadocJar checkMappings --stacktrace --warning-mode fail
- run: ./gradlew formatMappings --stacktrace --warning-mode fail
- name: Check mapping format
run: if [ -n "$(git status --porcelain)" ]; then exit 1; fi
- name: Build artifacts
if: ${{ matrix.java == '21-jdk' }}
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: build/libs/

test-build-logic:
runs-on: ubuntu-24.04
container:
image: eclipse-temurin:21-jdk
options: --user root
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v2
- run: ./gradlew :filament:build
19 changes: 10 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
name: Publish
on: [push]
concurrency: ci-${{ github.ref }}
jobs:
build:
runs-on: ubuntu-20.04
publish:
if: ${{ github.repository_owner == 'Robustum' }}
runs-on: ubuntu-24.04
container:
image: openjdk:15-jdk
image: eclipse-temurin:21-jdk
options: --user root
steps:
- uses: actions/checkout@v1
- uses: gradle/wrapper-validation-action@v1

- uses: actions/checkout@v4
# Generate the build number based on tags to allow per branch build numbers, not something github provides by default.
- name: Generate build number
id: buildnumber
uses: einaregilsson/build-number@v3
uses: onyxmueller/build-tag-number@v1
with:
token: ${{ secrets.github_token }}
prefix: ${{ github.ref }}
prefix: "build/${{ github.ref }}"

- run: ./gradlew build javadocJar publish --stacktrace
- run: ./gradlew build javadocJar checkVersion publish --stacktrace
env:
MAVEN_URL: ${{ secrets.MAVEN_URL }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
BRANCH_NAME: ${{ github.ref }}
4 changes: 4 additions & 0 deletions HEADER
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/*
* This file is free for everyone to use under the Creative Commons Zero license.
*/

Loading
Loading