diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index a5bace5..5d20a9d 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -15,6 +15,22 @@ jobs: steps: - uses: actions/checkout@v4 + + - run: | + ls + pwd + + - name: Checkout Anchor Source Generator + uses: actions/checkout@v4 + with: + repository: sava-software/anchor-src-gen + token: ${{ secrets.GH_READ_PROJECTS }} + path: anchor-src-gen + + - run: | + ls + pwd + - uses: gradle/actions/wrapper-validation@v3 - uses: oracle-actions/setup-java@v1 diff --git a/genSrc.sh b/genSrc.sh index 7a6fd36..079ebe7 100755 --- a/genSrc.sh +++ b/genSrc.sh @@ -12,8 +12,10 @@ readonly projectDirectory readonly mainClass="$package.Entrypoint" javaArgs=( - '-XX:+UseZGC' '--enable-preview' + '-XX:+UseZGC' + '-Xms256M' + '-Xmx1024M' ) screen=0; @@ -93,19 +95,17 @@ vcsRef="$(git rev-parse --short HEAD)" readonly vcsRef readonly javaExe="$projectDirectory/build/$vcsRef/bin/java" -javaArgs+=("-D$moduleName.baseDelayMillis=$baseDelayMillis") -javaArgs+=("-D$moduleName.basePackageName=$basePackageName") -javaArgs+=("-D$moduleName.outputModuleName=$outputModuleName") -javaArgs+=("-D$moduleName.numThreads=$numThreads") -javaArgs+=("-D$moduleName.programsCSV=$programsCSV") -javaArgs+=("-D$moduleName.rpc=$rpc") -javaArgs+=("-D$moduleName.sourceDirectory=$sourceDirectory") -javaArgs+=("-D$moduleName.tabLength=$tabLength") javaArgs+=( - '-Xms256M' - '-Xmx1024M' + "-D$moduleName.baseDelayMillis=$baseDelayMillis" + "-D$moduleName.basePackageName=$basePackageName" + "-D$moduleName.outputModuleName=$outputModuleName" + "-D$moduleName.numThreads=$numThreads" + "-D$moduleName.programsCSV=$programsCSV" + "-D$moduleName.rpc=$rpc" + "-D$moduleName.sourceDirectory=$sourceDirectory" + "-D$moduleName.tabLength=$tabLength" + '-m' "$moduleName/$mainClass" ) -javaArgs+=('-m' "$moduleName/$mainClass") if [[ "$screen" == 0 ]]; then set -x