Skip to content

Commit

Permalink
test checking out src-gen repo on actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpe7s committed Aug 19, 2024
1 parent a964207 commit 2b0fd77
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 12 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 12 additions & 12 deletions genSrc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ readonly projectDirectory
readonly mainClass="$package.Entrypoint"

javaArgs=(
'-XX:+UseZGC'
'--enable-preview'
'-XX:+UseZGC'
'-Xms256M'
'-Xmx1024M'
)

screen=0;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2b0fd77

Please sign in to comment.