Skip to content

Commit

Permalink
Minor tweaks (#66)
Browse files Browse the repository at this point in the history
* Reuse env variables for GHA

* Tweak gradle-build-action usages

* Update dependency gradle to v8.5

* Update plugin spotless to v6.24.0

* Update actions/setup-java action to v4

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
Goooler and renovate[bot] authored Jan 17, 2024
1 parent c334466 commit b079cf5
Show file tree
Hide file tree
Showing 22 changed files with 96 additions and 158 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/jdk10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,23 @@ on:
branches:
- master
paths:
- '.github/workflows/jdk10.yml'
- 'Casks/zulu-jdk10.rb'
pull_request:
branches:
- master
paths:
- '.github/workflows/jdk10.yml'
- 'Casks/zulu-jdk10.rb'

jobs:

build:
name: Build
runs-on: macos-latest
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
steps:

- name: Check out
Expand All @@ -28,18 +33,9 @@ jobs:
brew update-reset "$(brew --repository homebrew/cask)"
mkdir -p $(brew --repo)/Library/Taps/mdogan
ln -s $GITHUB_WORKSPACE $(brew --repo)/Library/Taps/mdogan/homebrew-zulu
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
- name: install jdk10
run: brew install zulu-jdk10
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1

- name: uninstall jdk10
run: brew uninstall zulu-jdk10
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
14 changes: 5 additions & 9 deletions .github/workflows/jdk11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,23 @@ on:
branches:
- master
paths:
- '.github/workflows/jdk11.yml'
- 'Casks/zulu-jdk11.rb'
pull_request:
branches:
- master
paths:
- '.github/workflows/jdk11.yml'
- 'Casks/zulu-jdk11.rb'

jobs:

build:
name: Build
runs-on: macos-latest
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
steps:

- name: Check out
Expand All @@ -28,18 +33,9 @@ jobs:
brew update-reset "$(brew --repository homebrew/cask)"
mkdir -p $(brew --repo)/Library/Taps/mdogan
ln -s $GITHUB_WORKSPACE $(brew --repo)/Library/Taps/mdogan/homebrew-zulu
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
- name: install jdk11
run: brew install zulu-jdk11
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1

- name: uninstall jdk11
run: brew uninstall zulu-jdk11
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
14 changes: 5 additions & 9 deletions .github/workflows/jdk12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,23 @@ on:
branches:
- '**'
paths:
- '.github/workflows/jdk12.yml'
- 'Casks/zulu-jdk12.rb'
pull_request:
branches:
- master
paths:
- '.github/workflows/jdk12.yml'
- 'Casks/zulu-jdk12.rb'

jobs:

build:
name: Build
runs-on: macos-latest
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
steps:

- name: Check out
Expand All @@ -28,18 +33,9 @@ jobs:
brew update-reset "$(brew --repository homebrew/cask)"
mkdir -p $(brew --repo)/Library/Taps/mdogan
ln -s $GITHUB_WORKSPACE $(brew --repo)/Library/Taps/mdogan/homebrew-zulu
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
- name: install jdk12
run: brew install zulu-jdk12
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1

- name: uninstall jdk12
run: brew uninstall zulu-jdk12
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
14 changes: 5 additions & 9 deletions .github/workflows/jdk13.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,23 @@ on:
branches:
- master
paths:
- '.github/workflows/jdk13.yml'
- 'Casks/zulu-jdk13.rb'
pull_request:
branches:
- master
paths:
- '.github/workflows/jdk13.yml'
- 'Casks/zulu-jdk13.rb'

jobs:

build:
name: Build
runs-on: macos-latest
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
steps:

- name: Check out
Expand All @@ -28,18 +33,9 @@ jobs:
brew update-reset "$(brew --repository homebrew/cask)"
mkdir -p $(brew --repo)/Library/Taps/mdogan
ln -s $GITHUB_WORKSPACE $(brew --repo)/Library/Taps/mdogan/homebrew-zulu
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
- name: install jdk13
run: brew install zulu-jdk13
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1

- name: uninstall jdk13
run: brew uninstall zulu-jdk13
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
14 changes: 5 additions & 9 deletions .github/workflows/jdk14.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,23 @@ on:
branches:
- master
paths:
- '.github/workflows/jdk14.yml'
- 'Casks/zulu-jdk14.rb'
pull_request:
branches:
- master
paths:
- '.github/workflows/jdk14.yml'
- 'Casks/zulu-jdk14.rb'

jobs:

build:
name: Build
runs-on: macos-latest
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
steps:

- name: Check out
Expand All @@ -28,18 +33,9 @@ jobs:
brew update-reset "$(brew --repository homebrew/cask)"
mkdir -p $(brew --repo)/Library/Taps/mdogan
ln -s $GITHUB_WORKSPACE $(brew --repo)/Library/Taps/mdogan/homebrew-zulu
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
- name: install jdk14
run: brew install zulu-jdk14
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1

- name: uninstall jdk14
run: brew uninstall zulu-jdk14
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
14 changes: 5 additions & 9 deletions .github/workflows/jdk15.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,23 @@ on:
branches:
- master
paths:
- '.github/workflows/jdk15.yml'
- 'Casks/zulu-jdk15.rb'
pull_request:
branches:
- master
paths:
- '.github/workflows/jdk15.yml'
- 'Casks/zulu-jdk15.rb'

jobs:

build:
name: Build
runs-on: macos-latest
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
steps:

- name: Check out
Expand All @@ -28,18 +33,9 @@ jobs:
brew update-reset "$(brew --repository homebrew/cask)"
mkdir -p $(brew --repo)/Library/Taps/mdogan
ln -s $GITHUB_WORKSPACE $(brew --repo)/Library/Taps/mdogan/homebrew-zulu
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
- name: install jdk15
run: brew install zulu-jdk15
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1

- name: uninstall jdk15
run: brew uninstall zulu-jdk15
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
14 changes: 5 additions & 9 deletions .github/workflows/jdk16.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,23 @@ on:
branches:
- master
paths:
- '.github/workflows/jdk16.yml'
- 'Casks/zulu-jdk16.rb'
pull_request:
branches:
- master
paths:
- '.github/workflows/jdk16.yml'
- 'Casks/zulu-jdk16.rb'

jobs:

build:
name: Build
runs-on: macos-latest
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
steps:

- name: Check out
Expand All @@ -28,18 +33,9 @@ jobs:
brew update-reset "$(brew --repository homebrew/cask)"
mkdir -p $(brew --repo)/Library/Taps/mdogan
ln -s $GITHUB_WORKSPACE $(brew --repo)/Library/Taps/mdogan/homebrew-zulu
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
- name: install jdk16
run: brew install zulu-jdk16
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1

- name: uninstall jdk16
run: brew uninstall zulu-jdk16
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
14 changes: 5 additions & 9 deletions .github/workflows/jdk17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,23 @@ on:
branches:
- master
paths:
- '.github/workflows/jdk17.yml'
- 'Casks/zulu-jdk17.rb'
pull_request:
branches:
- master
paths:
- '.github/workflows/jdk17.yml'
- 'Casks/zulu-jdk17.rb'

jobs:

build:
name: Build
runs-on: macos-latest
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
steps:

- name: Check out
Expand All @@ -28,18 +33,9 @@ jobs:
brew update-reset "$(brew --repository homebrew/cask)"
mkdir -p $(brew --repo)/Library/Taps/mdogan
ln -s $GITHUB_WORKSPACE $(brew --repo)/Library/Taps/mdogan/homebrew-zulu
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
- name: install jdk17
run: brew install zulu-jdk17
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1

- name: uninstall jdk17
run: brew uninstall zulu-jdk17
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
14 changes: 5 additions & 9 deletions .github/workflows/jdk18.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,23 @@ on:
branches:
- master
paths:
- '.github/workflows/jdk18.yml'
- 'Casks/zulu-jdk18.rb'
pull_request:
branches:
- master
paths:
- '.github/workflows/jdk18.yml'
- 'Casks/zulu-jdk18.rb'

jobs:

build:
name: Build
runs-on: macos-latest
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
steps:

- name: Check out
Expand All @@ -28,18 +33,9 @@ jobs:
brew update-reset "$(brew --repository homebrew/cask)"
mkdir -p $(brew --repo)/Library/Taps/mdogan
ln -s $GITHUB_WORKSPACE $(brew --repo)/Library/Taps/mdogan/homebrew-zulu
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
- name: install jdk18
run: brew install zulu-jdk18
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1

- name: uninstall jdk18
run: brew uninstall zulu-jdk18
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
Loading

0 comments on commit b079cf5

Please sign in to comment.