8
8
9
9
env :
10
10
JAVA_VERSION : 17
11
- NATIVE_VERSION : 22.3.2
12
11
GRAALVM_DIST : graalvm-community
13
12
JAVA_DISTRO : temurin
14
13
FAIL_ISSUE : 140
29
28
- name : Tools release cache key
30
29
id : test-data-key
31
30
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
33
33
34
34
echo "🔹 Use $LATEST_VERSION"
35
35
echo "tools_version=${LATEST_VERSION}" >> $GITHUB_OUTPUT
@@ -53,23 +53,17 @@ jobs:
53
53
run : |
54
54
mkdir -p sources
55
55
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"
60
57
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
64
62
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
73
67
74
68
ls -al sources
75
69
@@ -134,24 +128,18 @@ jobs:
134
128
distribution : ${{ env.GRAALVM_DIST }}
135
129
java-version : ${{ env.JAVA_VERSION }}
136
130
github-token : ${{ secrets.GITHUB_TOKEN }}
137
- version : ${{ env.NATIVE_VERSION }}
138
131
cache : ' maven'
139
132
140
- - name : Build and run
141
- id : mvn-build
142
- run : |
143
- ./mvnw -B -ntp -DskipFormat -DargLine="-Xmx6g" verify
144
-
145
133
- if : runner.os == 'Windows'
146
134
name : clean before native build
147
135
shell : cmd
148
136
run : |
149
- ./mvnw -B -ntp -DskipFormat clean
137
+ ./mvnw -B -ntp -DskipTests - DskipFormat clean
150
138
151
- - name : Build and run in native mode
139
+ - name : Build, run, and test in native mode
152
140
id : mvn-native-build
153
141
run : |
154
- ./mvnw -B -ntp -Dnative -DskipTests - DskipFormat verify
142
+ ./mvnw -B -ntp -Dnative -DskipFormat verify
155
143
156
144
report-native-build :
157
145
0 commit comments