Build exact development revisions in DuneGit Actions
This commit is contained in:
parent
297eafe2b4
commit
7e5bfd5504
1 changed files with 5 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ on:
|
|||
- 'Dune*/**'
|
||||
- 'JarvisConnector/**'
|
||||
- 'gui-common/**'
|
||||
- 'network/proxy/central-pack/**'
|
||||
|
||||
jobs:
|
||||
plugins:
|
||||
|
|
@ -20,7 +21,7 @@ jobs:
|
|||
run: |
|
||||
set -euo pipefail
|
||||
git init .
|
||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/MC.git "$GITHUB_SHA"
|
||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 "https://www.dunerealms.com/git/${GITHUB_REPOSITORY}.git" "$GITHUB_SHA"
|
||||
git checkout --detach FETCH_HEAD
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
|
|
@ -34,6 +35,9 @@ jobs:
|
|||
run: |
|
||||
set -euo pipefail
|
||||
modules=(DuneEss DuneLobby DuneNPC DuneRealms-minecraft-only DuneRealmsGUI DuneTerrain JarvisConnector)
|
||||
if [[ -f network/proxy/central-pack/build.gradle.kts ]]; then
|
||||
modules+=(network/proxy/central-pack)
|
||||
fi
|
||||
mkdir -p plugin-artifacts
|
||||
for module in "${modules[@]}"; do
|
||||
gradle --no-daemon -p "$module" test jar
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff