Skip to content

Commit

Permalink
👷 re-enable tools builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ebullient committed Dec 10, 2024
1 parent a931ecd commit 3c2984f
Showing 1 changed file with 15 additions and 25 deletions.
40 changes: 15 additions & 25 deletions .github/workflows/tools-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

env:
JAVA_VERSION: 17
NATIVE_VERSION: 22.3.2
NATIVE_VERSION: 23.0.1
GRAALVM_DIST: graalvm-community
JAVA_DISTRO: temurin
FAIL_ISSUE: 140
Expand All @@ -29,7 +29,8 @@ jobs:
- name: Tools release cache key
id: test-data-key
run: |
LATEST_VERSION="v1.209.3"
LATEST_VERSION=$(curl -sLH 'Accept: application/json' https://api.github.com/repos/5etools-mirror-3/5etools-src/releases/latest | jq -r .tag_name)
echo $LATEST_VERSION
echo "🔹 Use $LATEST_VERSION"
echo "tools_version=${LATEST_VERSION}" >> $GITHUB_OUTPUT
Expand All @@ -53,23 +54,17 @@ jobs:
run: |
mkdir -p sources
# echo "🔹 Download $LATEST_VERSION"
# ARTIFACT_URL="https://github.com/5etools-mirror-2/5etools-mirror-2.github.io/archive/refs/tags/$LATEST_VERSION.tar.gz"
# VER=$(echo $LATEST_VERSION | cut -c 2-)
# ROOT="5etools-mirror-2.github.io-$VER"
echo "🔹 Download $LATEST_VERSION"
# curl -LsS -o 5etools.tar.gz $ARTIFACT_URL
# tar xzf 5etools.tar.gz ${ROOT}/data
# mv ${ROOT} sources/5etools-mirror-2.github.io
gh repo clone 5etools-mirror-3/5etools-src sources/5etools-src -- --depth=1 -c advice.detachedHead=false -b $LATEST_VERSION
gh repo clone 5etools-mirror-3/5etools-img sources/5etools-img -- --depth=1 -c advice.detachedHead=false -b $LATEST_VERSION
gh repo clone TheGiddyLimit/unearthed-arcana sources/5e-unearthed-arcana -- --depth=1
gh repo clone TheGiddyLimit/homebrew sources/5e-homebrew -- --depth=1
# gh repo clone 5etools-mirror-2/5etools-img sources/5etools-img -- --depth=1
# gh repo clone TheGiddyLimit/unearthed-arcana sources/5e-unearthed-arcana -- --depth=1
# gh repo clone TheGiddyLimit/homebrew sources/5e-homebrew -- --depth=1
# # Remove image contents. We just need the files to exist (linking)
# find sources -type f -type f \
# \( -iname \*.jpg -o -iname \*.png -o -iname \*.webp \) \
# | while read FILE; do echo > "$FILE"; done
# Remove image contents. We just need the files to exist (linking)
find sources -type f -type f \
\( -iname \*.jpg -o -iname \*.png -o -iname \*.webp \) \
| while read FILE; do echo > "$FILE"; done
ls -al sources
Expand Down Expand Up @@ -137,21 +132,16 @@ jobs:
version: ${{ env.NATIVE_VERSION }}
cache: 'maven'

- name: Build and run
id: mvn-build
run: |
./mvnw -B -ntp -DskipFormat -DargLine="-Xmx6g" verify
- if: runner.os == 'Windows'
name: clean before native build
shell: cmd
run: |
./mvnw -B -ntp -DskipFormat clean
./mvnw -B -ntp -DskipTests -DskipFormat clean
- name: Build and run in native mode
- name: Build, run, and test in native mode
id: mvn-native-build
run: |
./mvnw -B -ntp -Dnative -DskipTests -DskipFormat verify
./mvnw -B -ntp -Dnative -DskipFormat verify
report-native-build:

Expand Down

0 comments on commit 3c2984f

Please sign in to comment.