set gwt.workDir system property to $TMP; set TMP to /mnt/tmp for Github Actions

This commit is contained in:
Axel Uhl
2025-10-20 18:34:03 +02:00
parent 044f8a00f1
commit 325f8dbabc
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -28,11 +28,13 @@ jobs:
runs-on: ${{ github.event.inputs.runner_cpus != '' && format('ubuntu-latest-{0}cpu', github.event.inputs.runner_cpus) || 'ubuntu-latest' }}
steps:
- run: df -h
- name: "node-cleanup"
- name: "node-cleanup-and-mnt-tmp"
run: |
sudo rm -rf /usr/share/dotnet /opt/ghc /opt/hostedtoolcache/CodeQL
sudo docker image prune --force
sudo docker builder prune -a
sudo mkdir -p /mnt/tmp
sudo chmod 777 /mnt/tmp
- run: df -h
- name: Allocate swap space
shell: bash
@@ -86,6 +88,7 @@ jobs:
ports: '5672:5672'
- shell: bash
env: # Or as an environment variable
TMP: /mnt/tmp
APP_PARAMETERS: "-Daws.region=eu-west-1 -Dgoogle.maps.authenticationparams=${{ secrets.GOOGLE_MAPS_AUTHENTICATIONPARAMS }} -Daws.s3.test.s3AccessId=${{ secrets.AWS_S3_TEST_S3ACCESSID }} -Daws.s3.test.s3AccessKey=${{ secrets.AWS_S3_TEST_S3ACCESSKEY }} -Dgeonames.org.usernames=${{ secrets.GEONAMES_ORG_USERNAMES }}"
JAVA8_HOME: ${{env.JAVA_HOME_8_X64}}
run: |
+1 -1
View File
@@ -222,7 +222,7 @@ echo TMP will be used for java.io.tmpdir and is $TMP
if [ "$TMP" = "" ]; then
export TMP=/tmp
fi
extra="${extra} -Dgwt.workers=${GWT_WORKERS} -Djava.io.tmpdir=$TMP"
extra="${extra} -Dgwt.workers=${GWT_WORKERS} -Djava.io.tmpdir=$TMP -Dgwt.workDir=$TMP"
extra="${extra} -Djdk.xml.maxGeneralEntitySizeLimit=0 -Djdk.xml.totalEntitySizeLimit=0"
shift $((OPTIND-1))