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
17 changes: 12 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,15 @@ jobs:
java-version: '21'
distribution: 'temurin'

- name: Grant Permissions to gradlew
run: chmod +x gradlew
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Grant Permissions
run: |
chmod +x gradlew
chmod +x relocate_natives/prepare.sh

- name: Build Jars
run: ./gradlew build
Expand All @@ -39,10 +46,10 @@ jobs:
run: |
echo "::set-output name=VERSION_NAME::$(./gradlew -q :common:printVersionName)"

- name: Check if tag exists
- name: Check if tag exists
uses: mukunku/[email protected]
id: checkTag
with:
with:
tag: ${{ steps.gradle_version.outputs.VERSION_NAME }}

- name: Fail if tag exists
Expand All @@ -65,4 +72,4 @@ jobs:
fabric/build/libs/*.jar
neoforge/build/libs/*.jar
name: ${{ steps.gradle_version.outputs.VERSION_NAME }}
tag: ${{ steps.gradle_version.outputs.VERSION_NAME }}
tag: ${{ steps.gradle_version.outputs.VERSION_NAME }}
19 changes: 13 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,23 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'

- name: Grant Permissions to gradlew
run: chmod +x gradlew


- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Grant Permissions
run: |
chmod +x gradlew
chmod +x relocate_natives/prepare.sh

- name: Test
run: ./gradlew :common:test

Expand All @@ -38,4 +45,4 @@ jobs:
if: always()
with:
files: |
common/build/test-results/**/*.xml
common/build/test-results/**/*.xml
Loading