From 9620b230e28f877657c176045cc1daf4f9840d57 Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Sun, 27 Jun 2021 18:28:51 +0200 Subject: [PATCH] Include SpigotWizCompat dependency in CI pipeline --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 297fb47..00d9c81 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,8 @@ jobs: jar_url=$(curl https://hub.spigotmc.org/nexus/content/repositories/snapshots/org/spigotmc/spigot-api/1.17-R0.1-SNAPSHOT/ | grep "shaded.jar\"" | tail -1 | sed "s/.*href=\"\(.*\)\".*/\1/g") curl $jar_url > spigot-shaded.jar find -name "*.java" > sources - javac -cp spigot-shaded.jar @sources -d build + curl -s https://github.com/GabrielTofvesson/SpigotWizCompat/releases | grep "latest/SpigotWizCompat-.*jar" | cut -d : -f 2,3 | sed "s/[^\"]*\"\\([^\"]*\\)\".*/https:\\/\\/github.com\\/\\1/g" | wget -O SpigotWizCompat.jar -qi - + javac -cp spigot-shaded.jar;SpigotWizCompat.jar @sources -d build cp res/* build rm sources cd build