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