Skip to content

Commit f55a4ca

Browse files
committed
👷 re-enable tools builds
1 parent a931ecd commit f55a4ca

File tree

1 file changed

+14
-26
lines changed

1 file changed

+14
-26
lines changed

.github/workflows/tools-data.yml

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88

99
env:
1010
JAVA_VERSION: 17
11-
NATIVE_VERSION: 22.3.2
1211
GRAALVM_DIST: graalvm-community
1312
JAVA_DISTRO: temurin
1413
FAIL_ISSUE: 140
@@ -29,7 +28,8 @@ jobs:
2928
- name: Tools release cache key
3029
id: test-data-key
3130
run: |
32-
LATEST_VERSION="v1.209.3"
31+
LATEST_VERSION=$(curl -sLH 'Accept: application/json' https://api.github.com/repos/5etools-mirror-3/5etools-src/releases/latest | jq -r .tag_name)
32+
echo $LATEST_VERSION
3333
3434
echo "🔹 Use $LATEST_VERSION"
3535
echo "tools_version=${LATEST_VERSION}" >> $GITHUB_OUTPUT
@@ -53,23 +53,17 @@ jobs:
5353
run: |
5454
mkdir -p sources
5555
56-
# echo "🔹 Download $LATEST_VERSION"
57-
# ARTIFACT_URL="https://github.com/5etools-mirror-2/5etools-mirror-2.github.io/archive/refs/tags/$LATEST_VERSION.tar.gz"
58-
# VER=$(echo $LATEST_VERSION | cut -c 2-)
59-
# ROOT="5etools-mirror-2.github.io-$VER"
56+
echo "🔹 Download $LATEST_VERSION"
6057
61-
# curl -LsS -o 5etools.tar.gz $ARTIFACT_URL
62-
# tar xzf 5etools.tar.gz ${ROOT}/data
63-
# mv ${ROOT} sources/5etools-mirror-2.github.io
58+
gh repo clone 5etools-mirror-3/5etools-src sources/5etools-src -- --depth=1 -c advice.detachedHead=false -b $LATEST_VERSION
59+
gh repo clone 5etools-mirror-3/5etools-img sources/5etools-img -- --depth=1 -c advice.detachedHead=false -b $LATEST_VERSION
60+
gh repo clone TheGiddyLimit/unearthed-arcana sources/5e-unearthed-arcana -- --depth=1
61+
gh repo clone TheGiddyLimit/homebrew sources/5e-homebrew -- --depth=1
6462
65-
# gh repo clone 5etools-mirror-2/5etools-img sources/5etools-img -- --depth=1
66-
# gh repo clone TheGiddyLimit/unearthed-arcana sources/5e-unearthed-arcana -- --depth=1
67-
# gh repo clone TheGiddyLimit/homebrew sources/5e-homebrew -- --depth=1
68-
69-
# # Remove image contents. We just need the files to exist (linking)
70-
# find sources -type f -type f \
71-
# \( -iname \*.jpg -o -iname \*.png -o -iname \*.webp \) \
72-
# | while read FILE; do echo > "$FILE"; done
63+
# Remove image contents. We just need the files to exist (linking)
64+
find sources -type f -type f \
65+
\( -iname \*.jpg -o -iname \*.png -o -iname \*.webp \) \
66+
| while read FILE; do echo > "$FILE"; done
7367
7468
ls -al sources
7569
@@ -134,24 +128,18 @@ jobs:
134128
distribution: ${{ env.GRAALVM_DIST }}
135129
java-version: ${{ env.JAVA_VERSION }}
136130
github-token: ${{ secrets.GITHUB_TOKEN }}
137-
version: ${{ env.NATIVE_VERSION }}
138131
cache: 'maven'
139132

140-
- name: Build and run
141-
id: mvn-build
142-
run: |
143-
./mvnw -B -ntp -DskipFormat -DargLine="-Xmx6g" verify
144-
145133
- if: runner.os == 'Windows'
146134
name: clean before native build
147135
shell: cmd
148136
run: |
149-
./mvnw -B -ntp -DskipFormat clean
137+
./mvnw -B -ntp -DskipTests -DskipFormat clean
150138
151-
- name: Build and run in native mode
139+
- name: Build, run, and test in native mode
152140
id: mvn-native-build
153141
run: |
154-
./mvnw -B -ntp -Dnative -DskipTests -DskipFormat verify
142+
./mvnw -B -ntp -Dnative -DskipFormat verify
155143
156144
report-native-build:
157145

0 commit comments

Comments
 (0)