Skip to content

Commit

Permalink
Upgrade JDK Casks to the latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mdogan committed Mar 19, 2024
1 parent ee93751 commit 7d56292
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/jdk22.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: JDK22

on:
push:
branches:
- master
paths:
- '.github/workflows/jdk22.yml'
- 'Casks/zulu-jdk22.rb'
pull_request:
branches:
- master
paths:
- '.github/workflows/jdk22.yml'
- 'Casks/zulu-jdk22.rb'

jobs:

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

- name: Check out
uses: actions/checkout@v4

- name: brew pull & reset & tap
run: |
brew update-reset "$(brew --repository)"
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
- name: install jdk22
run: brew install zulu-jdk22

- name: uninstall jdk22
run: brew uninstall zulu-jdk22
27 changes: 27 additions & 0 deletions Casks/zulu-jdk22.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
cask 'zulu-jdk22' do

if Hardware::CPU.intel?
version '22.28.91,22.0.0'
sha256 '7ca4fb27667b8ed222df4e0f4a384c1b390abf5a7520c690311b4cc24003c50e'

url 'https://cdn.azul.com/zulu/bin/zulu22.28.91-ca-jdk22.0.0-macosx_x64.dmg',
referer: 'https://www.azul.com/downloads/zulu-community/'

depends_on macos: '>= :mojave'
else
version '22.28.91,22.0.0'
sha256 '97f9f95c4674d78d0541cff740795562d3bfb317d3867108f3d7f94689979bd4'

url 'https://cdn.azul.com/zulu/bin/zulu22.28.91-ca-jdk22.0.0-macosx_aarch64.dmg',
referer: 'https://www.azul.com/downloads/zulu-community/'

depends_on macos: '>= :big_sur'
end

name 'Azul Zulu® JDK 22'
homepage 'https://www.azul.com/downloads/zulu-community/'

pkg 'Double-Click to Install Azul Zulu JDK 22.pkg'

uninstall pkgutil: 'com.azulsystems.zulu.22'
end
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ brew install <name>
| OpenJDK 19 | `zulu-jdk19` | 19.0.2 | [![JDK19](https://github.com/mdogan/homebrew-zulu/actions/workflows/jdk19.yml/badge.svg?branch=master&event=push)](https://github.com/mdogan/homebrew-zulu/actions/workflows/jdk19.yml) |
| OpenJDK 20 | `zulu-jdk20` | 20.0.2 | [![JDK20](https://github.com/mdogan/homebrew-zulu/actions/workflows/jdk20.yml/badge.svg?branch=master&event=push)](https://github.com/mdogan/homebrew-zulu/actions/workflows/jdk20.yml) |
| OpenJDK 21 | `zulu-jdk21` | 21.0.2 | [![JDK21](https://github.com/mdogan/homebrew-zulu/actions/workflows/jdk21.yml/badge.svg?branch=master&event=push)](https://github.com/mdogan/homebrew-zulu/actions/workflows/jdk21.yml) |
| OpenJDK 22 | `zulu-jdk22` | 22.0.0 | [![JDK22](https://github.com/mdogan/homebrew-zulu/actions/workflows/jdk22.yml/badge.svg?branch=master&event=push)](https://github.com/mdogan/homebrew-zulu/actions/workflows/jdk22.yml) |
| Mission Control | `zulu-mc` | 8.3.1 | [![MC](https://github.com/mdogan/homebrew-zulu/workflows/MissionControl/badge.svg)](https://github.com/mdogan/homebrew-zulu/actions) |

0 comments on commit 7d56292

Please sign in to comment.