Oh my glob

- Glob over all jars from libs when running the test mod
- Add vanillin jars to artifacts
This commit is contained in:
Jozufozu 2025-01-12 15:48:10 -08:00
parent b6124be28a
commit 02ea671d31

View file

@ -44,6 +44,8 @@ jobs:
common/build/libs/
fabric/build/libs/
forge/build/libs/
vanillinFabric/build/libs/
vanillinForge/build/libs/
test:
strategy:
@ -63,15 +65,13 @@ jobs:
- name: Setup Environment Variables
run: |
echo "MOD_VERSION=$(grep '^mod_version =' gradle.properties | cut -d'=' -f2 | tr -d ' ')" >> "$GITHUB_ENV"
echo "MINECRAFT_VERSION=$(grep '^minecraft_version =' gradle.properties | cut -d'=' -f2 | tr -d ' ')" >> "$GITHUB_ENV"
echo "FABRIC_API_VERSION=$(grep '^fabric_api_version =' gradle.properties | cut -d'=' -f2 | tr -d ' ' | sed 's/+.*//')" >> "$GITHUB_ENV"
- name: Move Test Mod and Flywheel into run/mods
run: |
mkdir -p run/mods
cp ${{ matrix.loader }}/build/libs/flywheel-${{ matrix.loader }}-${{ env.MINECRAFT_VERSION }}-${{ env.MOD_VERSION }}.jar run/mods
cp ${{ matrix.loader }}/build/libs/flywheel-${{ matrix.loader }}-${{ env.MINECRAFT_VERSION }}-${{ env.MOD_VERSION }}-testmod.jar run/mods
cp ${{ matrix.loader }}/build/libs/*.jar run/mods
# Lock to a specific commit, it would be bad if the tag is re-pushed with unwanted changes
- name: Run the MC client