Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade JDK Casks #75

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/jdk23.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: JDK23

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

jobs:

check:
name: Check
strategy:
matrix:
os:
# macos-latest is based on arm64.
- macos-latest
# macos-12 is based on x64.
- macos-12
runs-on: ${{ matrix.os }}
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 jdk23
run: brew install zulu-jdk23

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

on_intel do
version '23.28.85,23.0.0'
sha256 '01a85fef022d0a87a4383844dc43fa93376e73080ddc2b4c1dbbe77c2615e920'

url 'https://cdn.azul.com/zulu/bin/zulu23.28.85-ca-jdk23.0.0-macosx_x64.dmg',
referer: 'https://www.azul.com/downloads/zulu-community/'

depends_on macos: '>= :mojave'
end
on_arm do
version '23.28.85,23.0.0'
sha256 'cb64c3c5e54893478a0657593a22edb978e1035900cdad714408a14fe3348228'

url 'https://cdn.azul.com/zulu/bin/zulu23.28.85-ca-jdk23.0.0-macosx_aarch64.dmg',
referer: 'https://www.azul.com/downloads/zulu-community/'

depends_on macos: '>= :big_sur'
end

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

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

uninstall pkgutil: 'com.azulsystems.zulu.23'
end
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ brew install <name>
| 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.4 | [![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.2 | [![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) |
| OpenJDK 23 | `zulu-jdk23` | 23.0.0 | [![JDK23](https://github.com/mdogan/homebrew-zulu/actions/workflows/jdk23.yml/badge.svg?branch=master&event=push)](https://github.com/mdogan/homebrew-zulu/actions/workflows/jdk23.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) |
Loading