diff --git a/.github/workflows/jdk23.yml b/.github/workflows/jdk23.yml new file mode 100644 index 0000000..0b559fb --- /dev/null +++ b/.github/workflows/jdk23.yml @@ -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 diff --git a/Casks/zulu-jdk23.rb b/Casks/zulu-jdk23.rb new file mode 100644 index 0000000..b7a65bf --- /dev/null +++ b/Casks/zulu-jdk23.rb @@ -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 diff --git a/README.md b/README.md index 85a04a0..a96e84f 100755 --- a/README.md +++ b/README.md @@ -34,4 +34,5 @@ brew install | 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) |