< prev index next >

.github/workflows/main.yml

Print this page

153               return
154             elif [[ $GITHUB_EVENT_NAME == push ]]; then
155               # Cut out the real branch name
156               BRANCH=${GITHUB_REF##*/}
157 
158               # Dry run rebuilds the caches in current branch, so they can be reused
159               # for any child PR branches. Because of this, we want to trigger this
160               # workflow in master branch, so that actual PR branches can use the cache.
161               # This workflow would trigger every time contributors sync their master
162               # branches in their personal forks.
163               if [[ $BRANCH == "master" ]]; then
164                 echo 'true'
165                 return
166               fi
167 
168               # ...same for stabilization branches
169               if [[ $BRANCH =~ "jdk(.*)" ]]; then
170                 echo 'true'
171                 return
172               fi






173             fi
174 
175             echo 'false'
176           }
177 
178           echo "linux-x64=$(check_platform linux-x64 linux x64)" >> $GITHUB_OUTPUT
179           echo "linux-x64-variants=$(check_platform linux-x64-variants variants)" >> $GITHUB_OUTPUT
180           echo "linux-aarch64=$(check_platform linux-aarch64 linux aarch64)" >> $GITHUB_OUTPUT
181           echo "linux-cross-compile=$(check_platform linux-cross-compile cross-compile)" >> $GITHUB_OUTPUT
182           echo "alpine-linux-x64=$(check_platform alpine-linux-x64 alpine-linux x64)" >> $GITHUB_OUTPUT
183           echo "macos-x64=$(check_platform macos-x64 macos x64)" >> $GITHUB_OUTPUT
184           echo "macos-aarch64=$(check_platform macos-aarch64 macos aarch64)" >> $GITHUB_OUTPUT
185           echo "windows-x64=$(check_platform windows-x64 windows x64)" >> $GITHUB_OUTPUT
186           echo "windows-aarch64=$(check_platform windows-aarch64 windows aarch64)" >> $GITHUB_OUTPUT
187           echo "docs=$(check_platform docs)" >> $GITHUB_OUTPUT
188           echo "dry-run=$(check_dry_run)" >> $GITHUB_OUTPUT
189 
190   ###
191   ### Build jobs
192   ###

153               return
154             elif [[ $GITHUB_EVENT_NAME == push ]]; then
155               # Cut out the real branch name
156               BRANCH=${GITHUB_REF##*/}
157 
158               # Dry run rebuilds the caches in current branch, so they can be reused
159               # for any child PR branches. Because of this, we want to trigger this
160               # workflow in master branch, so that actual PR branches can use the cache.
161               # This workflow would trigger every time contributors sync their master
162               # branches in their personal forks.
163               if [[ $BRANCH == "master" ]]; then
164                 echo 'true'
165                 return
166               fi
167 
168               # ...same for stabilization branches
169               if [[ $BRANCH =~ "jdk(.*)" ]]; then
170                 echo 'true'
171                 return
172               fi
173 
174               # ...same for project branch
175               if [[ $BRANCH == "lworld" ]]; then
176                 echo 'true'
177                 return
178               fi
179             fi
180 
181             echo 'false'
182           }
183 
184           echo "linux-x64=$(check_platform linux-x64 linux x64)" >> $GITHUB_OUTPUT
185           echo "linux-x64-variants=$(check_platform linux-x64-variants variants)" >> $GITHUB_OUTPUT
186           echo "linux-aarch64=$(check_platform linux-aarch64 linux aarch64)" >> $GITHUB_OUTPUT
187           echo "linux-cross-compile=$(check_platform linux-cross-compile cross-compile)" >> $GITHUB_OUTPUT
188           echo "alpine-linux-x64=$(check_platform alpine-linux-x64 alpine-linux x64)" >> $GITHUB_OUTPUT
189           echo "macos-x64=$(check_platform macos-x64 macos x64)" >> $GITHUB_OUTPUT
190           echo "macos-aarch64=$(check_platform macos-aarch64 macos aarch64)" >> $GITHUB_OUTPUT
191           echo "windows-x64=$(check_platform windows-x64 windows x64)" >> $GITHUB_OUTPUT
192           echo "windows-aarch64=$(check_platform windows-aarch64 windows aarch64)" >> $GITHUB_OUTPUT
193           echo "docs=$(check_platform docs)" >> $GITHUB_OUTPUT
194           echo "dry-run=$(check_dry_run)" >> $GITHUB_OUTPUT
195 
196   ###
197   ### Build jobs
198   ###
< prev index next >